| 28 | namespace test |
| 29 | { |
| 30 | RawTensor::RawTensor(TensorShape shape, Format format) : SimpleTensor(shape, format) |
| 31 | { |
| 32 | _buffer = std::make_unique<uint8_t[]>(SimpleTensor::num_elements() * SimpleTensor::num_channels() * |
| 33 | SimpleTensor::element_size()); |
| 34 | } |
| 35 | |
| 36 | RawTensor::RawTensor(TensorShape shape, DataType data_type, int num_channels) |
| 37 | : SimpleTensor(shape, data_type, num_channels) |