LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
persist.hpp File Reference
#include "El.hpp"
#include "lbann/base.hpp"
#include "lbann/utils/enum_iterator.hpp"
#include <sstream>
#include "lbann/macros/instantiate.hpp"
Include dependency graph for persist.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lbann::persist
 
class  lbann::NonexistentArchiveFile
 

Namespaces

 lbann
 

Macros

#define PROTO(T)
 
#define LBANN_INSTANTIATE_CPU_HALF
 
#define LBANN_INSTANTIATE_GPU_HALF
 

Typedefs

using lbann::persist_type_iterator = enum_iterator< persist_type, persist_type::train, persist_type::validation_context >
 

Enumerations

enum  lbann::persist_type {
  lbann::persist_type::train, lbann::persist_type::model, lbann::persist_type::metrics, lbann::persist_type::validate,
  lbann::persist_type::testing, lbann::persist_type::inference_context, lbann::persist_type::prediction_context, lbann::persist_type::training_context,
  lbann::persist_type::testing_context, lbann::persist_type::tournament_context, lbann::persist_type::validation_context
}
 
enum  lbann::callback_type {
  lbann::callback_type::model_only, lbann::callback_type::weights_only, lbann::callback_type::execution_context_only, lbann::callback_type::full_checkpoint,
  lbann::callback_type::invalid
}
 

Functions

persist_type lbann::execution_mode_to_persist_type (execution_mode m)
 
std::string lbann::to_string (persist_type pt)
 
bool lbann::write_bytes (int fd, const char *name, const void *buf, size_t size)
 
bool lbann::read_bytes (int fd, const char *name, void *buf, size_t size)
 
bool lbann::write_string (int fd, const char *name, const char *buf, size_t size)
 
bool lbann::read_string (int fd, const char *name, char *buf, size_t size)
 
template<typename C >
void lbann::write_cereal_archive (C &obj, const std::string &filename)
 
template<typename C >
void lbann::write_cereal_archive (C &obj, persist &p, const std::string &filename)
 
template<typename C >
void lbann::write_cereal_archive (C &obj, persist &p, persist_type pt, const std::string &suffix)
 
template<typename C >
void lbann::write_cereal_archive (C &obj, persist &p, execution_mode mode, const std::string &suffix)
 
template<typename C >
void lbann::read_cereal_archive (C &obj, const std::string &filename)
 
template<typename C >
void lbann::read_cereal_archive (C &obj, persist &p, const std::string &filename)
 
template<typename C >
void lbann::read_cereal_archive (C &obj, persist &p, persist_type pt, const std::string &suffix)
 
template<typename C >
void lbann::read_cereal_archive (C &obj, persist &p, execution_mode mode, const std::string &suffix)
 
template<typename C >
std::string lbann::create_cereal_archive_binary_string (C &obj)
 
template<typename C >
void lbann::unpack_cereal_archive_binary_string (C &obj, const std::string &buf)
 
template<typename C >
void lbann::load_from_shared_cereal_archive (C &obj, lbann_comm &comm, const std::string &filename)
 
template<typename C >
void lbann::load_from_shared_cereal_archive (C &obj, persist &p, lbann_comm &comm, const std::string &filename)
 
template<typename C >
void lbann::load_from_shared_cereal_archive (C &obj, persist &p, persist_type pt, lbann_comm &comm, const std::string &suffix)
 
template<typename C >
void lbann::load_from_shared_cereal_archive (C &obj, persist &p, execution_mode mode, lbann_comm &comm, const std::string &suffix)
 
 lbann::PROTO (float)
 
 lbann::PROTO (double)
 

Macro Definition Documentation

◆ LBANN_INSTANTIATE_CPU_HALF

#define LBANN_INSTANTIATE_CPU_HALF

Definition at line 240 of file persist.hpp.

◆ LBANN_INSTANTIATE_GPU_HALF

#define LBANN_INSTANTIATE_GPU_HALF

Definition at line 241 of file persist.hpp.

◆ PROTO

#define PROTO (   T)
Value:
extern template bool persist::write_rank_distmat<T>( \
persist_type type, \
const char* name, \
const El::AbstractDistMatrix<T>& M); \
extern template bool persist::read_rank_distmat<T>( \
persist_type type, \
const char* name, \
El::AbstractDistMatrix<T>& M); \
extern template bool persist::write_distmat<T>( \
persist_type type, \
const char* name, \
El::AbstractDistMatrix<T>* M); \
extern template bool persist::read_distmat<T>(persist_type type, \
const char* name, \
El::AbstractDistMatrix<T>* M)
persist_type
Definition: persist.hpp:39

Definition at line 223 of file persist.hpp.