onnxruntime/test/providers/cpu/tensor/transpose_test.cc
TEST(TransposeOpTest, TwoDimNoAttr) {
  std::vector<int64_t> input_shape({2, 3});
  std::vector<float> input_vals = {
      1.0f, 2.0f, 3.0f,
      4.0f, 5.0f, 6.0f};

  std::vector<int64_t> expected_shape({3, 2});
  auto expected_vals = {
      1.0f, 4.0f,
      2.0f, 5.0f,
      3.0f, 6.0f};

  TransposeTest(input_shape, input_vals, nullptr, expected_shape, expected_vals);
}
// Test 2 dimensional transpose, with no permutation attribute specified
Test 2 dimensional transpose, with no permutation attribute specified
Test 2 dimensional transpose with no permutation attribute specified
TEST(TransposeOpTest, TwoDimNoAttr) {
  std::vector<int64_t> input_shape({2, 3});
  std::vector<float> input_vals = {
      1.0f, 2.0f, 3.0f,
      4.0f, 5.0f, 6.0f};
  std::vector<int64_t> expected_shape({3, 2});
  auto expected_vals = {
      1.0f, 4.0f,
      2.0f, 5.0f,
      3.0f, 6.0f};
  TransposeTest(input_shape, input_vals, nullptr, expected_shape, expected_vals);
}
TEST ( TransposeOpTest , TwoDimNoAttr ) { std :: vector < int64_t > input_shape ( { 2 , 3 } ) ; std :: vector < float > input_vals = { 1.0f , 2.0f , 3.0f , 4.0f , 5.0f , 6.0f } ; std :: vector < int64_t > expected_shape ( { 3 , 2 } ) ; auto expected_vals = { 1.0f , 4.0f , 2.0f , 5.0f , 3.0f , 6.0f } ; TransposeTest ( input_shape , input_vals , nullptr , expected_shape , expected_vals ) ; }
Test 2 dimensional transpose, with no permutation attribute specified
Test 2 dimensional transpose with no permutation attribute specified