|
| template<typename F > |
| void | ColumnSum (const Matrix< F > &X, Matrix< F > &sums) |
| |
| template<typename F > |
| void | ColumnSum (const AbstractMatrix< F > &X, AbstractMatrix< F > &sums) |
| |
| template<typename F > |
| void | ColumnSum (const AbstractDistMatrix< F > &A, AbstractDistMatrix< F > &sums) |
| |
| template<typename F > |
| void | RowSum (const Matrix< F > &X, Matrix< F > &sums) |
| |
| template<typename F > |
| void | RowSum (const AbstractMatrix< F > &X, AbstractMatrix< F > &sums) |
| |
| template<typename F > |
| void | RowSum (const AbstractDistMatrix< F > &A, AbstractDistMatrix< F > &sums) |
| |
| template<typename F > |
| void | ColumnSummaryStats (const Matrix< F > &X, F &sum, F &min, F &max, F &mean) |
| |
| template<typename ArchiveT , typename T > |
| void | save (ArchiveT &ar, ::El::AbstractMatrix< T > const &mat) |
| | Save a matrix to a text-based archive. More...
|
| |
| template<typename ArchiveT , typename T , ::El::Device D, lbann::utils::WhenTextArchive< ArchiveT > = 1> |
| void | save (ArchiveT &ar, ::El::Matrix< T, D > const &mat) |
| | Save a matrix to a binary archive. More...
|
| |
| template<typename ArchiveT , typename T , ::El::Device D> |
| void | save (lbann::RootedOutputArchiveAdaptor< ArchiveT > &ar, ::El::Matrix< T, D > const &mat) |
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenNotTextArchive< ArchiveT > = 1> |
| void | load (ArchiveT &archive, ::El::AbstractMatrix< T > &mat) |
| |
| template<typename ArchiveT , typename T , ::El::Device D, lbann::utils::WhenTextArchive< ArchiveT > = 1> |
| void | load (ArchiveT &archive, ::El::Matrix< T, D > &mat) |
| | "Load" a CPU Matrix from a text-based archive. More...
|
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenNotTextArchive< ArchiveT > = 1> |
| void | load (ArchiveT &archive, ::El::Matrix< T, ::El::Device::CPU > &mat) |
| | Load a CPU Matrix from a non-text archive. More...
|
| |
| template<typename ArchiveT , typename T , ::El::Device D> |
| void | load (lbann::RootedInputArchiveAdaptor< ArchiveT > &ar, ::El::Matrix< T, D > &mat) |
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenTextArchive< ArchiveT > = 1> |
| void | save (ArchiveT &ar, ::El::AbstractDistMatrix< T > const &mat) |
| | Save a distributed matrix to a text-based archive. More...
|
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenTextArchive< ArchiveT > = 1> |
| void | load (ArchiveT &ar, ::El::AbstractDistMatrix< T > &mat) |
| | Load a DistMatrix from a text-based archive. More...
|
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenTextArchive< ArchiveT > = 1> |
| void | save (lbann::RootedOutputArchiveAdaptor< ArchiveT > &ar, ::El::AbstractDistMatrix< T > const &mat) |
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenTextArchive< ArchiveT > = 1> |
| void | load (lbann::RootedInputArchiveAdaptor< ArchiveT > &ar, ::El::AbstractDistMatrix< T > &mat) |
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenNotTextArchive< ArchiveT > = 1> |
| void | save (lbann::RootedOutputArchiveAdaptor< ArchiveT > &ar, ::El::DistMatrix< T, ::El::CIRC, ::El::CIRC > const &mat) |
| |
| template<typename ArchiveT , typename T , lbann::utils::WhenNotTextArchive< ArchiveT > = 1> |
| void | load (lbann::RootedInputArchiveAdaptor< ArchiveT > &ar, ::El::DistMatrix< T, ::El::CIRC, ::El::CIRC > &mat) |
| |
| template<typename T > |
| bool | compare_values (Matrix< T, Device::CPU > const &A, Matrix< T, Device::CPU > const &B) |
| |
| template<typename S , typename T > |
| bool | operator== (AbstractMatrix< S > const &A, AbstractMatrix< T > const &B) noexcept |
| |
| template<typename T > |
| bool | operator== (AbstractMatrix< T > const &A, AbstractMatrix< T > const &B) |
| |
| template<typename S , typename T > |
| bool | operator== (AbstractDistMatrix< S > const &A, AbstractDistMatrix< T > const &B) noexcept |
| |
| template<typename T > |
| bool | operator== (AbstractDistMatrix< T > const &A, AbstractDistMatrix< T > const &B) noexcept |
| |
template<typename ArchiveT , typename T , lbann::utils::WhenTextArchive< ArchiveT > = 1>
| void El::save |
( |
ArchiveT & |
ar, |
|
|
::El::AbstractDistMatrix< T > const & |
mat |
|
) |
| |
Save a distributed matrix to a text-based archive.
Save a distributed matrix to a non-text (binary) archive.
For these text-based archives (XML and JSON), this will just output the matrix metadata. Thus, a true deserialization will not be possible. Since these archive types are primarily intended for debugging, this should not be a problem. If it is, open an issue and it will be remedied.
- 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
-
| ar | The Cereal archive into which the matrix will be written. |
| mat | The distributed matrix to serialize. |
- Exceptions
-
In this case, the binary matrix data will be saved to the archive, as well as the global height/width.
- Template Parameters
-
| ArchiveT | (Inferred) The Cereal archive type to use. |
| T | (Inferred) The data type of the matrix. |
- Parameters
-
| ar | The Cereal archive into which the matrix will be written. |
| mat | The distributed matrix to serialize. |
- Exceptions
-
Definition at line 210 of file serialize_matrices_impl.hpp.