- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for slice_v1 (3.75 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir
// CHECK: %[[SLICE_1:.*]] = "tf.Slice"(%[[SHAPE]], %[[CONST]], %[[CONST_2]]) : (tensor<3xi64>, tensor<1xi32>, tensor<1xi32>) -> tensor<1xi64> // CHECK: %[[SLICE_2:.*]] = "tf.Slice"(%[[SHAPE]], %[[CONST_2]], %[[CONST_1]]) : (tensor<3xi64>, tensor<1xi32>, tensor<1xi32>) -> tensor<2xi64> // CHECK: %[[BROADCAST_ARGS:.*]] = "tf.BroadcastArgs"(%[[SLICE_1]], %[[CONST_4]]) : (tensor<1xi64>, tensor<0xi64>) -> tensor<1xi64>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 81K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
vector_one); auto slice_op = CreateSliceOpForTensorList(loc, /*input_list=*/input, /*start_index=*/scalar_zero, /*size=*/size, /*item_rank=*/partial_position_shape, /*result_type=*/result_type, rewriter); rewriter->create<func::ReturnOp>(loc, ArrayRef<Value>({slice_op})); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
GetReshapeOpForConv2DFilter(last_reshape_shape, transpose_op, &builder); // create slice op. auto slice_op = GetSliceOpForConv2DBackPropFilter(old_filter_shape, final_reshape_op, &builder); // Update backprop's user with the slice op. backprop.replaceAllUsesWith(slice_op.getResult()); } // Checks if the input producer op is supported in this transform. Right now, we
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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 (1) -
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) -
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)