60 tflite::TransposeParams params{};
61 const int32_t *perm_data = getTensorData<int32_t>(
perm());
63 params.perm_count =
size;
64 for (
int i = 0; i <
size; i++)
65 params.perm[i] = perm_data[i];
66 switch (
input()->element_type())
68 case DataType::FLOAT32:
71 getTensorData<float>(
output()));
76 getTensorData<int64_t>(
output()));
81 getTensorData<uint8_t>(
output()));
84 throw std::runtime_error(
"luci-intp Transpose Unsupported type.");