Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for permutation (0.41 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

            operand_type.cloneWith(shape, rewriter.getI32Type());
        // Cast permutation attribute from i64 to i32 as they are required to be i32
        // in TFLite.
        SmallVector<int32_t> permutation_i32 =
            CastI64ArrayToI32(op.getPermutation()).value();
        auto permutation_attr =
            DenseIntElementsAttr::get(permutation_type, permutation_i32);
        auto permutation =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

    TF::TransposeOp GetTransposeOpForConv2DFilter(OpBuilder* builder, Value input) {
      SmallVector<int32_t, 6> permutation = {0, 2, 1, 3, 4, 5};
      auto permute_type = RankedTensorType::get({6}, builder->getIntegerType(32));
      auto permute_attr = DenseIntElementsAttr::get(permute_type, permutation);
      auto permute_value =
          builder->create<TF::ConstOp>(input.getLoc(), permute_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo.mlir

    // CHECK-LABEL: main
    // CHECK: return %arg0 : tensor<5x7xf32>
    }
    
    // - transpose
    //
    func.func @transpose_2d(%arg0: tensor<2x3xf32>) -> tensor<3x2xf32> {
      %0 = "mhlo.transpose"(%arg0) <{permutation = dense<[1, 0]> : tensor<2xi64>}> : (tensor<2x3xf32>) -> tensor<3x2xf32>
      func.return %0 : tensor<3x2xf32>
    
    // CHECK-LABEL:   transpose_2d
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

    Value Transpose(OpBuilder* builder, Value value_to_transpose,
                    SmallVector<int32_t, 4> perm, RankedTensorType original_type,
                    mlir::Location location) {
      // Create a constant op for transpose permutation.
      auto perm_op = CreateI32DenseConst(builder, perm, location);
    
      // Create tensor type for the transpose result.
      auto transpose_type = original_type;
      auto transpose_shape =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  5. src/io/pipe_test.go

    				t.Errorf("Write() = (%d, %v); want (%d, nil)", n, err, len(input))
    			}
    		}
    
    		// Since each read is independent, the only guarantee about the output
    		// is that it is a permutation of the input in readSized groups.
    		got := make([]byte, 0, count*len(input))
    		for i := 0; i < cap(c); i++ {
    			got = append(got, (<-c)...)
    		}
    		got = sortBytesInGroups(got, readSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/sha3/keccakf_amd64.s

    	// Convert the user state into an internal state
    	NOTQ _be(rpState)
    	NOTQ _bi(rpState)
    	NOTQ _go(rpState)
    	NOTQ _ki(rpState)
    	NOTQ _mi(rpState)
    	NOTQ _sa(rpState)
    
    	// Execute the KeccakF permutation
    	MOVQ _ba(rpState), rCa
    	MOVQ _be(rpState), rCe
    	MOVQ _bu(rpState), rCu
    
    	XORQ _ga(rpState), rCa
    	XORQ _ge(rpState), rCe
    	XORQ _gu(rpState), rCu
    
    	XORQ _ka(rpState), rCa
    	XORQ _ke(rpState), rCe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

    struct FoldTransposeOp : public OpRewritePattern<TransposeOp> {
      explicit FoldTransposeOp(MLIRContext* context)
          : OpRewritePattern<TransposeOp>(context, 1) {}
    
      // Computes the permutation of a constant `input_tensor` according to `perm`.
      // The function recursively traverses the dimensions of the output tensor in
      // a row-major order and writes the value in the output tensor into
      // `new_values`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/issues_test.go

    	for i, src := range sources {
    		orig[i] = mustParse(src)
    	}
    
    	// run the test for all order permutations of the incoming files
    	for _, perm := range [][len(sources)]int{
    		{0, 1, 2},
    		{0, 2, 1},
    		{1, 0, 2},
    		{1, 2, 0},
    		{2, 0, 1},
    		{2, 1, 0},
    	} {
    		// create file order permutation
    		files := make([]*syntax.File, len(sources))
    		for i := range perm {
    			files[i] = orig[perm[i]]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  9. 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)
  10. src/go/types/issues_test.go

    	for i, src := range sources {
    		orig[i] = mustParse(fset, src)
    	}
    
    	// run the test for all order permutations of the incoming files
    	for _, perm := range [][len(sources)]int{
    		{0, 1, 2},
    		{0, 2, 1},
    		{1, 0, 2},
    		{1, 2, 0},
    		{2, 0, 1},
    		{2, 1, 0},
    	} {
    		// create file order permutation
    		files := make([]*ast.File, len(sources))
    		for i := range perm {
    			files[i] = orig[perm[i]]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top