Skip to content

Feat: Support empty permutation vector for Transpose

Houssem ROUIS requested to merge feat/enhance_tranpose into dev

Context

For Transpose Operator, ONNX allows passing an empty permutation vector.
In that case, Transpose operation reverses the dimensions of the input tensor.

Modified files

  • Transpose.hpp, Transpose.cpp and pybind_Transpose.cpp, support empty permutation vector;
  • Test_TransposeImpl.cpp, add Unit Test for empty permutation vector;

TODO

  • Update Operator
  • Add Unit Test

Merge request reports

Loading