33 const int32_t dims = Tensor::num_dims(kernel.
input1());
34 const int32_t *perm_data =
41 for (
int idx = 0; idx < dims; ++idx)
49 const circle::Tensor *input = kernel.
input1();
50 const circle::Tensor *perm = kernel.
input2();
51 const circle::Tensor *output = kernel.
output();
54 const int32_t *perm_data = kernels::getTensorData<int32_t>(tiso_data.
input2_data);
59 for (
int i = 0; i <
size; ++i)
60 params.
perm[i] = perm_data[i];
62 switch (Tensor::element_type(input))
65 case DataType::FLOAT32:
67 kernels::getTensorData<float>(tiso_data.
input1_data),
69 kernels::getTensorData<float>(tiso_data.
output_data));
75 kernels::getTensorData<uint8_t>(tiso_data.
input1_data),
77 kernels::getTensorData<uint8_t>(tiso_data.
output_data));
81 assert(
false &&
"Unsupported type");
void Transpose(const TransposeParams ¶ms, const luci_interpreter::RuntimeShape &unextended_input_shape, const T *input_data, const luci_interpreter::RuntimeShape &unextended_output_shape, T *output_data)