36 const auto &block_size_obj =
_operands.
at(block_size_index);
38 if (block_size_obj.isConstant())
40 _init_map[block_size_index] = acl_common::initReverseOrder<int32_t>;
44 const auto &paddings_obj =
_operands.
at(paddings_index);
45 if (paddings_obj.isConstant())
48 assert(model_obj.
data());
49 const auto &shape = model_obj.
shape();
50 const auto base =
reinterpret_cast<const int32_t *
>(model_obj.
data()->base());
51 assert(model_obj.
shape().rank() == 2);
52 assert(shape.dim(0) == 2);
53 assert(shape.dim(1) == 2);
54 obj.access([&](
ITensor &tensor) {
55 for (
auto i = 0; i < shape.dim(0); ++i)
57 for (
auto j = 0; j < shape.dim(1); ++j)
59 const int32_t value = base[i * 2 + j];
60 int32_t *into =
reinterpret_cast<int32_t *
>(
65 tensor.buffer() + tensor.calcOffset({j, shape.dim(0) - i - 1}));