// - Dimension(1) -> Height
// - Dimension(2) -> Width
// - Dimension(3) -> Depth
- assert(dim(0) == 1);
-
+ const auto batch = dim(0);
const auto depth = dim(3);
const auto height = dim(1);
const auto width = dim(2);
- return nnfw::util::feature::Shape(depth, height, width);
+ return nnfw::util::feature::Shape(batch, depth, height, width);
}
nnfw::util::kernel::Shape Shape::asKernel(void) const
::arm_compute::TensorShape asTensorShape(const nnfw::util::feature::Shape &shape)
{
- return ::arm_compute::TensorShape(shape.W, shape.H, shape.C, 1);
+ return ::arm_compute::TensorShape(shape.W, shape.H, shape.C, shape.N);
}
::arm_compute::TensorShape asTensorShape(const nnfw::util::kernel::Shape &shape)