21#include <schema_generated.h>
32 std::vector<int32_t> res(
size);
34 for (uint32_t i = 0; i <
size; i++)
36 res[i] = array->
Get(i);
44 const uint32_t rank = shape->
size();
49 for (uint32_t axis = 0; axis < rank; ++axis)
51 res.
dim(axis) = shape->
Get(axis);
return_type Get(uoffset_t i) const
uint32_t & dim(uint32_t axis)
Shape & resize(uint32_t size)
std::vector< int32_t > IndexVector
tensor::Shape as_tensor_shape(const flatbuffers::Vector< int32_t > *shape)
Converts flatbuffers::Vector to nncc::core::ADT::tensor::Shape.
IndexVector as_index_vector(const flatbuffers::Vector< int32_t > *array)
Converts flatbuffers::Vector to IndexVector.