Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for slice_v1 (0.25 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        auto slice_op =
            llvm::dyn_cast_or_null<TFL::SliceOp>(value.getUses().begin().getUser());
        // We only match for the case where value is used by SliceOp.
        if (!slice_op) return std::nullopt;
        DenseElementsAttr begin;
        DenseElementsAttr size;
        if (!matchPattern(slice_op->getOperand(1), m_Constant(&begin)) ||
            !matchPattern(slice_op->getOperand(2), m_Constant(&size)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      TF_RETURN_IF_ERROR(GetNodeAttr(n->def(), "value", &proto));
      Tensor tensor(proto->dtype());
      TF_RET_CHECK(tensor.FromProto(*proto));
      return {tensor};
    }
    
    struct SliceInputs {
      Output slice_op;
      Output input;
      Output begin;
      Output size;
    
      // The size of the TF slice operation as a std::vector.  We can always compute
      // this because we only manipulate slices with a Const size.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      using OpRewritePattern<TFL::SliceOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(TFL::SliceOp slice_op,
                                    PatternRewriter& rewriter) const override {
        auto begin = slice_op.getBegin();
        auto size = slice_op.getSize();
        auto begin_type = begin.getType().dyn_cast_or_null<RankedTensorType>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK:  %[[SLICE1:.*]] = "tf.Slice"(%arg0, %[[CST1]], %[[CST2]]) : (tensor<3x8x4xi32>, tensor<3xi64>, tensor<3xi64>) -> tensor<3x6x4xi32>
      // CHECK:  %[[CONCAT:.*]] = "tf.ConcatV2"(%[[SLICE]], %[[SLICE1]], %[[CST3]]) : (tensor<3x2x4xi32>, tensor<3x6x4xi32>, tensor<i32>) -> tensor<3x8x4xi32>
      // CHECK:  return %[[CONCAT]] : tensor<3x8x4xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

        // CHECK: %[[SLICE1:.*]] = "mhlo.slice"(%[[ARG2]])
        // CHECK-DAG-SAME: start_indices = dense<1> : tensor<1xi64>
        // CHECK-DAG-SAME: limit_indices = dense<2> : tensor<1xi64>
        // CHECK-DAG-SAME: strides = dense<1> : tensor<1xi64>
        // CHECK-SAME: (tensor<2xi32>) -> tensor<1xi32>
        // CHECK: %[[DIM1:.*]] = mhlo.reshape %[[SLICE1]] : (tensor<1xi32>) -> tensor<i32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  6. test/escape_reflect.go

    	v.SetLen(n)
    }
    
    func setcap(x *[]int, n int) { // ERROR "x does not escape"
    	v := reflect.ValueOf(x).Elem()
    	v.SetCap(n)
    }
    
    // Unfortunate: x doesn't need to escape to heap, just to result.
    func slice1(x []byte) []byte { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Slice(1, 2).Bytes()
    }
    
    // Unfortunate: x doesn't need to escape to heap, just to result.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testerrors/ptr_test.go

    		c:    `struct s5 { int *p1; int *p2; }; void f5(int **p) {}`,
    		body: `p := &C.struct_s5{p1: nil, p2: new(C.int)}; C.f5(&p.p1)`,
    		fail: false,
    	},
    	{
    		// Passing the address of a slice with no Go pointers.
    		name:    "sliceok1",
    		c:       `void f6(void **p) {}`,
    		imports: []string{"unsafe"},
    		body:    `s := []unsafe.Pointer{nil}; C.f6(&s[0])`,
    		fail:    false,
    	},
    	{
    		// Passing the address of a slice with a Go pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  8. test/escape2.go

    	}
    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    	slice2 := make([]func() int, 1) // ERROR "make\(.*\) does not escape"
    	copy(slice2, slice1)
    	return slice2[0]
    }
    
    func issue12397(x, y int) { // ERROR "moved to heap: y$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  9. test/escape2n.go

    	}
    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    	slice2 := make([]func() int, 1) // ERROR "make\(.*\) does not escape"
    	copy(slice2, slice1)
    	return slice2[0]
    }
    
    func issue12397(x, y int) { // ERROR "moved to heap: y$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

    func.func @unpack(%input: tensor<4x3x6xf32>) -> (tensor<4x6xf32>, tensor<4x6xf32>, tensor<4x6xf32>) {
      // CHECK: %[[SLICE1:.*]] = "mhlo.slice"(%{{.*}}) <{limit_indices = dense<[4, 1, 6]> : tensor<3xi64>, start_indices = dense<0> : tensor<3xi64>, strides = dense<1> : tensor<3xi64>}> : (tensor<4x3x6xf32>) -> tensor<4x1x6xf32>
      // CHECK: %[[RES1:.*]] = mhlo.reshape %[[SLICE1]] : (tensor<4x1x6xf32>) -> tensor<4x6xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
Back to top