10 #include <core/data/image/image_type.hpp> 11 #include <ml/neural_net/Image.hpp> 14 namespace neural_net {
31 size_t Height()
const override;
32 size_t Width()
const override;
33 void WriteCHW(Span<float> buffer)
const override;
34 void WriteHWC(Span<float> buffer)
const override;
size_t Height() const override
The number of rows of pixels.
void WriteCHW(Span< float > buffer) const override
void WriteHWC(Span< float > buffer) const override
Abstract interface for images that a training pipeline can consume.
size_t Width() const override
The number of columns of pixels.