- This patch fixes aarch64 tizen build error
- assert for range check
- static_cast of size_t(64) parameter into uint32_t
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
// Assume that the front is higher dimensional.
// i.g. N: 0, C: 1, H: 2, W: 3 for NCHW layout
// NOTE This tensor must not be applied dim correction
- const ARMComputeAxis reversed{(num_dimensions() - index) - 1};
+ assert(num_dimensions() > index);
+ const ARMComputeAxis reversed{(static_cast<uint32_t>(num_dimensions() - index) - 1)};
return info()->dimension(reversed.value());
}