Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for slice_v1 (0.25 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 (0)
  2. test/escape_slice.go

    	return s[0]
    }
    
    func slice10() []*int {
    	i := 0          // ERROR "moved to heap: i"
    	s := []*int{&i} // ERROR "\[\]\*int{...} escapes to heap"
    	return s
    }
    
    func slice11() {
    	i := 2
    	s := make([]int, 2, 3) // ERROR "make\(\[\]int, 2, 3\) does not escape"
    	s = make([]int, i, 3)  // ERROR "make\(\[\]int, i, 3\) does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. 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)
  4. pilot/pkg/serviceregistry/kube/controller/endpointslice_test.go

    	cache := newEndpointSliceCache()
    	hostname := host.Name("foo")
    
    	// add a endpoint
    	ep1 := &model.IstioEndpoint{
    		Address:         "1.2.3.4",
    		ServicePortName: "http",
    	}
    	cache.Update(hostname, "slice1", []*model.IstioEndpoint{ep1})
    	if !testEndpointsEqual(cache.Get(hostname), []*model.IstioEndpoint{ep1}) {
    		t.Fatalf("unexpected endpoints")
    	}
    	if !cache.Has(hostname) {
    		t.Fatalf("expect to find the host name")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

      LogicalResult matchAndRewrite(
          mhlo::SliceOp slice_op, OpAdaptor adaptor,
          ConversionPatternRewriter& rewriter) const final {
        auto begin = rewriter.create<TF::ConstOp>(slice_op.getLoc(),
                                                  slice_op.getStartIndices());
        auto end = rewriter.create<TF::ConstOp>(slice_op.getLoc(),
                                                slice_op.getLimitIndices());
        auto strides =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceregistry_test.go

    	createEndpointSlice(t, s.KubeClient().Kube(), "slice1", "service", namespace, []v1.EndpointPort{{Name: "http", Port: 80}}, []string{"1.2.3.4"})
    	expectEndpoints(t, s, "outbound|80||service.namespace.svc.cluster.local", []string{"1.2.3.4:80"}, nil)
    
    	// create an FQDN endpoint that should be ignored
    	createEndpointSliceWithType(t, s.KubeClient().Kube(), "slice1", "service",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

    // CHECK:  [[SLICE_1:%.*]] = "tf.Slice"([[INPUT]], [[START_POS_1]], [[SLICE_SIZE_1]]) : (tensor<3x10xf32>, tensor<?xi32>, tensor<?xi32>) -> tensor<*xf32>
    
    
    // CHECK:  [[EXPANDED_ITEM:%.*]] = "tf.ExpandDims"([[ITEM]], [[ZERO]]) : (tensor<10xf32>, tensor<i32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      // All masks are `0` except `shrink_axis_mask` which is equal to `1` (slicing
      // scalar value from input vector).
      if (slice_op.getBeginMask() != 0 || slice_op.getEllipsisMask() != 0 ||
          slice_op.getEndMask() != 0 || slice_op.getNewAxisMask() != 0 ||
          slice_op.getShrinkAxisMask() != 1)
        return {};
    
      // Returns a value if the `value` is defined by a ConstOp with a single
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
Back to top