26 #ifndef LBANN_UTILS_PROTOBUF_UTILS_HPP_INCLUDED 27 #define LBANN_UTILS_PROTOBUF_UTILS_HPP_INCLUDED 53 namespace protobuf_utils {
62 std::vector<std::unique_ptr<lbann_data::LbannPB>>
76 std::vector<prototext_fn_triple>
78 const int trainer_rank = 0);
80 std::vector<std::unique_ptr<lbann_data::LbannPB>>
82 const std::vector<prototext_fn_triple>& names);
89 const std::vector<std::unique_ptr<lbann_data::LbannPB>>& models);
94 #endif // LBANN_UTILS_PROTOBUF_UTILS_HPP_INCLUDED
std::vector< std::unique_ptr< lbann_data::LbannPB > > load_prototext(const bool master, const int trainer_rank=0)
convience wrapper for other parsing, loading, and verifying prototext.
std::vector< std::unique_ptr< lbann_data::LbannPB > > read_in_prototext_files(const bool master, const std::vector< prototext_fn_triple > &names)
std::vector< prototext_fn_triple > parse_prototext_filenames_from_command_line(const bool master, const int trainer_rank=0)
Parses the command line for special prototext flags.
std::string data_set_metadata
void verify_prototext(const bool master, const std::vector< std::unique_ptr< lbann_data::LbannPB >> &models)
attempts to verify the all models are valid, and contain an optimizer and reader