|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
Fill weights with values from a NumPy file. More...
#include <initializer.hpp>
Public Types | |
Public Types | |
| using | AbsDistMatrixType = El::AbstractDistMatrix< TensorDataType > |
| The tensor type expected in this object. More... | |
Public Member Functions | |
| numpy_initializer (std::string file) | |
| std::string | get_type () const override |
| void | fill (AbsDistMatrixType &matrix) override |
| void | write_proto (lbann_data::Initializer &init) const final |
| Add initializer data to prototext. More... | |
Public Member Functions inherited from lbann::Cloneable< numpy_initializer< TensorDataType >, data_type_weights_initializer< TensorDataType > > | |
| std::unique_ptr< numpy_initializer< TensorDataType > > | clone () const |
| Return an exception-safe, memory-safe copy of this object. More... | |
Private Attributes | |
| std::string | m_file |
Fill weights with values from a NumPy file.
Expects a .npy file with float32 or float64 values in C-style, row-major order.
Definition at line 159 of file initializer.hpp.
| using lbann::numpy_initializer< TensorDataType >::AbsDistMatrixType = El::AbstractDistMatrix<TensorDataType> |
The tensor type expected in this object.
Definition at line 168 of file initializer.hpp.
|
inline |
Definition at line 173 of file initializer.hpp.
|
override |
|
inlineoverride |
|
final |
Add initializer data to prototext.
|
private |
NumPy file
Definition at line 182 of file initializer.hpp.