LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
proto_common.hpp File Reference
Include dependency graph for proto_common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 lbann_data
 
 lbann
 
 lbann::details
 

Macros

#define LBANN_ASSERT_MSG_HAS_FIELD(MSG, FIELD)
 

Functions

void lbann::customize_data_readers_sample_list (const lbann_comm &comm, ::lbann_data::LbannPB &p)
 Customize the name of the sample list. More...
 
void lbann::init_data_readers (lbann_comm *comm, const ::lbann_data::LbannPB &p, std::map< execution_mode, generic_data_reader *> &data_readers)
 instantiates one or more generic_data_readers and inserts them in &data_readers More...
 
void lbann::set_num_parallel_readers (const lbann_comm &comm, ::lbann_data::LbannPB &p)
 adjusts the number of parallel data readers More...
 
void lbann::get_cmdline_overrides (const lbann_comm &comm, ::lbann_data::LbannPB &p)
 adjusts the values in p by querying the options db More...
 
void lbann::print_parameters (const lbann_comm &comm, ::lbann_data::LbannPB &p, std::vector< int > &root_random_seeds, std::vector< int > &random_seeds, std::vector< int > &data_seq_random_seeds)
 print various params (learn_rate, etc) to cout More...
 
void lbann::save_session (const lbann_comm &comm, const int argc, char *const *argv, ::lbann_data::LbannPB &p)
 prints prototext file, cmd line, etc to file More...
 
void lbann::read_prototext_file (const std::string &fn, ::lbann_data::LbannPB &pb, const bool master)
 Read prototext from a file into a protobuf message. More...
 
void lbann::read_prototext_string (const std::string &contents, lbann_data::LbannPB &pb, const bool master)
 Read prototext from a string into a protobuf message. More...
 
bool lbann::write_prototext_file (const std::string &fn, ::lbann_data::LbannPB &pb)
 Write a protobuf message into a prototext file. More...
 
std::string lbann::trim (std::string const &str)
 Trim leading and trailing whitespace from a string. More...
 
template<typename T >
std::vector< T > lbann::details::parse_list_impl (std::string const &str)
 
template<typename T >
std::set< T > lbann::details::parse_set_impl (std::string const &str)
 
template<typename T = std::string>
std::vector< T > lbann::parse_list (std::string const &str)
 Parse a space-separated list. More...
 
template<typename T = std::string>
std::set< T > lbann::parse_set (std::string const &str)
 Parse a space-separated set. More...
 

Macro Definition Documentation

◆ LBANN_ASSERT_MSG_HAS_FIELD

#define LBANN_ASSERT_MSG_HAS_FIELD (   MSG,
  FIELD 
)
Value:
do { \
if (!MSG.has_##FIELD()) { \
LBANN_ERROR("No field \"" #FIELD "\" in the given message:\n{\n", \
MSG.DebugString(), \
"\n}\n"); \
} \
} while (false)

Definition at line 32 of file proto_common.hpp.