Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 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 (0)
  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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top