27 #ifndef LBANN_TRANSFORMS_ADJUST_CONTRAST_HPP_INCLUDED 28 #define LBANN_TRANSFORMS_ADJUST_CONTRAST_HPP_INCLUDED 32 #include <google/protobuf/message.h> 53 LBANN_ERROR(
"Contrast factor must be non-negative.");
59 std::string
get_type()
const override {
return "adjust_contrast"; }
62 std::vector<size_t>& dims)
override;
70 std::unique_ptr<transform>
76 #endif // LBANN_TRANSFORMS_ADJUST_CONTRAST_HPP_INCLUDED
T & data(const cnpy::NpyArray &na, const std::vector< size_t > indices)
A type-erased wrapper around an El::Matrix<T,Device::CPU>