LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
El::details Namespace Reference

Functions

template<typename ArchiveT , typename T , lbann::utils::WhenNotTextArchive< ArchiveT > = 1>
void do_save (ArchiveT &ar, ::El::Matrix< T, ::El::Device::CPU > const &mat)
 Save a CPU matrix to a non-text-based archive. More...
 

Function Documentation

◆ do_save()

template<typename ArchiveT , typename T , lbann::utils::WhenNotTextArchive< ArchiveT > = 1>
void El::details::do_save ( ArchiveT &  ar,
::El::Matrix< T, ::El::Device::CPU > const &  mat 
)

Save a CPU matrix to a non-text-based archive.

Warning
It is the caller's responsibility to ensure that the matrix to be serialized is actually a data-owning matrix. Serializing views is not supported, and, in the context of LBANN, should be unnecessary as the views will be reestablished when setup() is called on the deserialized objects.
Template Parameters
ArchiveT(Inferred) The Cereal archive type to use.
T(Inferred) The data type of the matrix.
Parameters
arThe Cereal archive into which the matrix will be written.
matThe matrix to serialize.
Exceptions
lbann::exceptionThrown when the matrix is actually a view.

Definition at line 70 of file serialize_matrices_impl.hpp.

Here is the call graph for this function: