27 #ifndef LBANN_IO_BUFFER_HPP_IMPL_INCLUDED 28 #define LBANN_IO_BUFFER_HPP_IMPL_INCLUDED 34 template <
typename TensorDataType>
35 template <
class Archive>
44 template <
typename TensorDataType>
50 if (m_input_buffers.find(data_field) == m_input_buffers.end()) {
51 m_input_buffers[data_field] =
52 std::make_unique<StarVCMatDT<TensorDataType, El::Device::CPU>>(
54 #if defined(LBANN_HAS_GPU) 56 m_input_buffers[data_field]->Matrix().SetMemoryMode(1);
57 #endif // LBANN_HAS_GPU 63 #endif // LBANN_IO_BUFFER_HPP_IMPL_INCLUDED void serialize(Archive &ar)
void initialize_buffer_for_data_field(data_field_type const data_field, lbann_comm *comm)
Create a data parallel distributed matrix to hold the input data for the field.
std::string data_field_type
El::Grid & get_trainer_grid()