Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for slice_v1 (0.14 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    //CHECK-NEXT: return %0 : tensor<4x32x256xf32>
    //CHECK-NEXT:}
    
    func.func @slice(%arg0: tensor<160x20x1xf32>) -> tensor<1x1x1xf32> {
      %0 = "vhlo.slice_v1"(%arg0) <{limit_indices = #vhlo.tensor_v1<dense<[0, 0, 0]> : tensor<3xi64>>, 
                                    start_indices = #vhlo.tensor_v1<dense<[1, 1, 1]> : tensor<3xi64>>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (1)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

          slice_op.getLoc(), new_output_type, reshape_op, new_begin, new_size);
    
      // Append a reshape at the bottom.
      auto output_reshape_op = InsertReshapeOp(slice_op.getLoc(), new_slice,
                                               output_type.getElementType(),
                                               output_type.getShape(), &rewriter);
      rewriter.replaceOp(slice_op, output_reshape_op.getResult());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

      collapsed_dims.insert(dimension_numbers.collapsed_slice_dims().begin(),
                            dimension_numbers.collapsed_slice_dims().end());
    
      // Slice operand by constructed start_indices and slice_sizes.
      auto slice_op = builder.create<TF::SliceOp>(
          loc, GetSliceOpOutputType(output.getType(), collapsed_dims), operand,
          /*start_indices=*/scattered_start_indices,
          /*slice_sizes=*/
          builder.create<TF::CastOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. src/sort/sort_test.go

    func TestSortFloat64sCompareSlicesSort(t *testing.T) {
    	slice1 := slices.Clone(float64s[:])
    	slice2 := slices.Clone(float64s[:])
    
    	Sort(Float64Slice(slice1))
    	slices.Sort(slice2)
    
    	// Compare for equality using cmp.Compare, which considers NaNs equal.
    	if !slices.EqualFunc(slice1, slice2, func(a, b float64) bool { return cmp.Compare(a, b) == 0 }) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/internal/types/testdata/check/builtins0.go

    	f2 := func() (x, y int64) { return }
    	_ = unsafe.Sizeof(f0 /* ERROR "used as value" */ ())
    	assert(unsafe.Sizeof(f1()) == 8)
    	_ = unsafe.Sizeof(f2()) // ERROR "too many arguments"
    }
    
    func Slice1() {
    	var x int
    	unsafe.Slice()        // ERROR "not enough arguments"
    	unsafe.Slice(1, 2, 3) // ERROR "too many arguments"
    	unsafe.Slice(1 /* ERROR "is not a pointer" */ , 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top