26 #ifndef __DATA_READER_TEST_COMMON_HPP__ 27 #define __DATA_READER_TEST_COMMON_HPP__ 30 #include <sys/types.h> 31 #include <sys/types.h> 37 #include "lbann/proto/lbann.pb.h" 38 #include <google/protobuf/text_format.h> 39 namespace pb = ::google::protobuf;
50 std::map<lbann::execution_mode, lbann::generic_data_reader*>
58 void write_file(std::string
data, std::string dir, std::string fn);
60 #endif //__DATA_READER_TEST_COMMON_HPP__ std::map< lbann::execution_mode, lbann::generic_data_reader * > instantiate_data_readers(std::string prototext_in, lbann::lbann_comm &comm_in, lbann::generic_data_reader *&train_ptr, lbann::generic_data_reader *&validate_ptr, lbann::generic_data_reader *&test_ptr, lbann::generic_data_reader *&tournament_ptr)
void write_file(std::string data, std::string dir, std::string fn)
T & data(const cnpy::NpyArray &na, const std::vector< size_t > indices)
std::string create_test_directory(std::string base_name)