![]() |
ROOT 6.08/07 Reference Guide |
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 |
Private Attributes | |
Matrix_t | fActivationGradients |
Gradients w.r.t. the activations of this layer. More... | |
size_t | fBatchSize |
Batch size used for training and evaluation. More... | |
Matrix_t & | fBiases |
Reference to the bias vectors of this layer. More... | |
Matrix_t | fBiasGradients |
Gradients w.r.t. the bias values of this layer. More... | |
Matrix_t | fDerivatives |
First fDerivatives of the activations of this layer. More... | |
Scalar_t | fDropoutProbability |
Probability that an input is active. More... | |
EActivationFunction | fF |
Activation function of the layer. More... | |
size_t | fInputWidth |
Number of neurons of the previous layer. More... | |
Matrix_t | fOutput |
Activations of this layer. More... | |
Matrix_t | fWeightGradients |
Gradients w.r.t. the weigths of this layer. More... | |
Matrix_t & | fWeights |
Reference to the weight matrix of this layer. More... | |
size_t | fWidth |
Number of neurons of this layer. More... | |
#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 |
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 | ( | ) | const |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |