Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for permutation (0.27 sec)

  1. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      %permutation = "tf.Const"() {value = dense<[2, 1, 0]> : tensor<3xi32>} : () -> (tensor<3xi32>)
      // CHECK: "mhlo.transpose"
      %0 = "tf.Transpose"(%arg0, %permutation) : (tensor<1x2x3xf32>, tensor<3xi32>) -> tensor<3x2x1xf32>
      func.return %0 : tensor<3x2x1xf32>
    }
    
    // -----
    
    // CHECK-LABEL: @transpose_3d
    func.func @transpose_3d(%arg0: tensor<1x2x3xf32>) -> tensor<3x2x1xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir

    func.func @transpose_2d(%arg0: tensor<2x3xf32>) -> tensor<3x2xf32> {
      %0 = mhlo.constant dense<[1, 0]> : tensor<2xi64>
      %1 = mhlo.constant dense<[1, 0]> : tensor<2xi64>
      %2 = "mhlo.transpose"(%arg0) <{permutation = dense<[1, 0]> : tensor<2xi64>}> : (tensor<2x3xf32>) -> tensor<3x2xf32>
      func.return %2 : tensor<3x2xf32>
    }
    
    // CHECK-LABEL:   func @transpose_3d_int32(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 340.2K bytes
    - Viewed (0)
Back to top