MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Fills a Blob with values where is set inversely proportional to number of incoming nodes, outgoing nodes, or their average. More...
Public Member Functions | |
XavierFiller (CudaDnn< T > cuda, Log log, FillerParameter p) | |
Constructor. More... | |
override void | Fill (int nCount, long hMem, int nNumAxes=1, int nNumOutputs=1, int nNumChannels=1, int nHeight=1, int nWidth=1) |
Fill the memory with random numbers from a xavier distribution. More... | |
Public Member Functions inherited from MyCaffe.fillers.Filler< T > | |
Filler (CudaDnn< T > cuda, Log log, FillerParameter p) | |
Constructor. More... | |
void | Fill (Blob< T > b) |
Fill the blob with values based on the actual filler used. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MyCaffe.fillers.Filler< T > | |
static Filler< T > | Create (CudaDnn< T > cuda, Log log, FillerParameter p) |
Create a new Filler instance. More... | |
Protected Attributes inherited from MyCaffe.fillers.Filler< T > | |
CudaDnn< T > | m_cuda |
Specifies the CudaDnn instance used to communicate to the low-level Cuda Dnn DLL. More... | |
Log | m_log |
Specifies the output log. More... | |
FillerParameter | m_param |
Specifies the filler parameters. More... | |
Fills a Blob with values where is set inversely proportional to number of incoming nodes, outgoing nodes, or their average.
A filler based on paper Understanding the difficulty of training deep feedfrward neural networks by Bengio and Glorot, 2010.
It fills the incoming matrix by randomly sampling uniform data from where where is the fan_in, fan_out, or their average, depending on the variance_norm option. You shold make sure the input blob has shape (num, a, b, c) where and . Note that this is currently not the case for inner product layers.
T | The base type float or double. |
Definition at line 26 of file XavierFiller.cs.
MyCaffe.fillers.XavierFiller< T >.XavierFiller | ( | CudaDnn< T > | cuda, |
Log | log, | ||
FillerParameter | p | ||
) |
Constructor.
cuda | Instance of CudaDnn - connection to cuda. |
log | Log used for output. |
p | Filler parameter that defines the filler settings. |
Definition at line 34 of file XavierFiller.cs.
|
virtual |
Fill the memory with random numbers from a xavier distribution.
nCount | Specifies the number of items to fill. |
hMem | Specifies the handle to GPU memory to fill. |
nNumAxes | Optionally, specifies the number of axes (default = 1). |
nNumOutputs | Optionally, specifies the number of outputs (default = 1). |
nNumChannels | Optionally, specifies the number of channels (default = 1). |
nHeight | Optionally, specifies the height (default = 1). |
nWidth | Optionally, specifies the width (default = 1). |
Implements MyCaffe.fillers.Filler< T >.
Definition at line 49 of file XavierFiller.cs.