Layer class width shared weight and bias layers.
Like the Layer class only that weight matrices are shared between different instances of the net, which can be used to implement multithreading 'Hogwild' style.
Public Types | |
using | Matrix_t = typename Architecture_t::Matrix_t |
using | Scalar_t = typename Architecture_t::Scalar_t |
using | Tensor_t = typename Architecture_t::Tensor_t |
Private Attributes | |
Matrix_t | fActivationGradients |
Gradients w.r.t. the activations of this layer. | |
size_t | fBatchSize |
Batch size used for training and evaluation. | |
Matrix_t & | fBiases |
Reference to the bias vectors of this layer. | |
Matrix_t | fBiasGradients |
Gradients w.r.t. the bias values of this layer. | |
Matrix_t | fDerivatives |
First fDerivatives of the activations of this layer. | |
Scalar_t | fDropoutProbability |
Probability that an input is active. | |
EActivationFunction | fF |
Activation function of the layer. | |
size_t | fInputWidth |
Number of neurons of the previous layer. | |
Matrix_t | fOutput |
Activations of this layer. | |
Matrix_t | fWeightGradients |
Gradients w.r.t. the weigths of this layer. | |
Matrix_t & | fWeights |
Reference to the weight matrix of this layer. | |
size_t | fWidth |
Number of neurons of this layer. | |
#include <TMVA/DNN/Layer.h>
using TMVA::DNN::TSharedLayer< Architecture_t >::Matrix_t = typename Architecture_t::Matrix_t |
using TMVA::DNN::TSharedLayer< Architecture_t >::Scalar_t = typename Architecture_t::Scalar_t |
using TMVA::DNN::TSharedLayer< Architecture_t >::Tensor_t = typename Architecture_t::Tensor_t |
TMVA::DNN::TSharedLayer< Architecture_t >::TSharedLayer | ( | size_t | fBatchSize, |
TLayer< Architecture_t > & | layer | ||
) |
TMVA::DNN::TSharedLayer< Architecture_t >::TSharedLayer | ( | const TSharedLayer< Architecture_t > & | layer | ) |
|
inline |
|
inline |
Compute activation of the layer for the given input.
The input must be in matrix form with the different rows corresponding to different events in the batch. Computes activations as well as the first partial derivative of the activation function at those activations.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void TMVA::DNN::TSharedLayer< Architecture_t >::Print |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |