This commit adds to initialize a member of Reader and View
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
public:
// Construct for buffer of model inputs
Reader(const ::nnfw::misc::feature::Shape &shape, const T *ptr, size_t len)
- : _shape{shape}, _ptr{reinterpret_cast<const uint8_t *>(ptr)}
+ : _shape{shape}, _ptr{reinterpret_cast<const uint8_t *>(ptr)}, _len{len}
{
UNUSED_RELEASE(len); // Workaround for unused variable in release mode
assert(shape.N * shape.C * shape.H * shape.W * sizeof(T) == len);
public:
// Construct for buffer of model inputs
View(const ::nnfw::misc::feature::Shape &shape, T *ptr, size_t len)
- : _shape{shape}, _ptr{reinterpret_cast<uint8_t *>(ptr)}
+ : _shape{shape}, _ptr{reinterpret_cast<uint8_t *>(ptr)}, _len{len}
{
UNUSED_RELEASE(len); // Workaround for unused variable in release mode
assert(shape.N * shape.H * shape.W * shape.C * sizeof(T) == len);