27 #ifndef LBANN_LAYERS_MISC_ONE_HOT_IMPL_HPP_INCLUDED 28 #define LBANN_LAYERS_MISC_ONE_HOT_IMPL_HPP_INCLUDED 35 template <
typename TensorDataType, data_layout Layout, El::Device Device>
41 if (this->get_input_size() != 1) {
42 const auto input_dims = this->get_input_dims();
43 std::ostringstream dim_ss;
44 for (
size_t i = 0; i < input_dims.size(); ++i) {
45 dim_ss << (i > 0 ?
"x" :
"") << input_dims[i];
51 "received an input tensor with invalid dimensions ",
60 #endif // LBANN_LAYERS_MISC_ONE_HOT_IMPL_HPP_INCLUDED virtual void setup_dims()
Setup tensor dimensions Called by the 'setup' function. If there are any input tensors, the base method sets all uninitialized output tensor dimensions equal to the first input tensor dimensions.
void setup_dims() override
Setup tensor dimensions Called by the 'setup' function. If there are any input tensors, the base method sets all uninitialized output tensor dimensions equal to the first input tensor dimensions.