This class is used to initialize weight matrix with constant values. More...
Public Member Functions | |
ConstInitialization (const double initVal=0) | |
Create the ConstantInitialization object. More... | |
template < typename eT > | |
void | Initialize (arma::Mat< eT > &W, const size_t rows, const size_t cols) |
Initialize the elements of the specified weight matrix. More... | |
template < typename eT > | |
void | Initialize (arma::Mat< eT > &W) |
Initialize the elements of the specified weight matrix. More... | |
template < typename eT > | |
void | Initialize (arma::Cube< eT > &W, const size_t rows, const size_t cols, const size_t slices) |
Initialize the elements of the specified weight (3rd order tensor). More... | |
template < typename eT > | |
void | Initialize (arma::Cube< eT > &W) |
Initialize the elements of the specified weight (3rd order tensor). More... | |
double const & | InitValue () const |
Get the initialization value. More... | |
double & | initValue () |
Modify the initialization value. More... | |
This class is used to initialize weight matrix with constant values.
Definition at line 25 of file const_init.hpp.
|
inline |
Create the ConstantInitialization object.
Definition at line 31 of file const_init.hpp.
|
inline |
Initialize the elements of the specified weight matrix.
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
Definition at line 42 of file const_init.hpp.
|
inline |
Initialize the elements of the specified weight matrix.
W | Weight matrix to initialize. |
Definition at line 56 of file const_init.hpp.
References Log::Fatal.
|
inline |
Initialize the elements of the specified weight (3rd order tensor).
W | Weight matrix to initialize. |
rows | Number of rows. |
cols | Number of columns. |
slices | Number of slices. |
Definition at line 73 of file const_init.hpp.
|
inline |
Initialize the elements of the specified weight (3rd order tensor).
W | Weight matrix to initialize. |
Definition at line 90 of file const_init.hpp.
References Log::Fatal.
|
inline |
Get the initialization value.
Definition at line 99 of file const_init.hpp.
|
inline |
Modify the initialization value.
Definition at line 101 of file const_init.hpp.