Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 253 for getWant (0.15 sec)

  1. pilot/pkg/security/authz/matcher/metadata_test.go

    			},
    		},
    	}
    
    	if !cmp.Equal(actual, expect, protocmp.Transform()) {
    		t.Errorf("want %s, got %s", expect.String(), actual.String())
    	}
    }
    
    func TestMetadataListMatcher(t *testing.T) {
    	getWant := func(regex string) *matcher.MetadataMatcher {
    		return &matcher.MetadataMatcher{
    			Filter: "istio_authn",
    			Path: []*matcher.MetadataMatcher_PathSegment{
    				{
    					Segment: &matcher.MetadataMatcher_PathSegment_Key{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 22:15:12 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      for (int i = 0; i < low_pads.size(); ++i) {
        new_low_pads[i] = low_pads[i].getInt() + parent_low_pads[i].getInt();
        new_high_pads[i] = high_pads[i].getInt() + parent_high_pads[i].getInt();
        new_interior_pads[i] =
            interior_pads[i].getInt() + parent_interior_pads[i].getInt();
      }
    
      // Replace pad_op with a new pad having new attributes, taking the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

      const std::vector<int> kValidNumOfOutput = {1, 2, 3};
      if (input_type.getRank() >= kValidNumOfOutput.size()) {
        return func.emitError()
               << "Unrecognized input rank: " << input_type.getRank();
      }
      if (func.getNumResults() != kValidNumOfOutput[input_type.getRank()]) {
        return func.emitError()
               << "Expect " << kValidNumOfOutput[input_type.getRank()]
               << "output(s) when input has rank " << input_type.getRank();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        data_rank = then_tensor.getRank();
        if (then_tensor.getRank() > 0)
          data_first_dim = then_tensor.getShape().front();
        if (else_tensor.getRank() > 0)
          data_first_dim = std::max(else_tensor.getShape().front(), data_first_dim);
      } else if (then_has_rank) {
        data_rank = then_tensor.getRank();
        if (then_tensor.getRank() > 0)
          data_first_dim = then_tensor.getShape().front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

          const int64_t dilation = get_int(dilations[dim]);
          rhs_dilations.push_back(dilation);
          const int64_t stride = get_int(strides[dim]);
          window_strides.push_back(stride);
    
          Value pad_low, pad_high;
          if (padding == tensorflow::Padding::EXPLICIT) {
            pad_low = get_const(get_int(explicit_paddings[2 * dim]));
            pad_high = get_const(get_int(explicit_paddings[2 * dim + 1]));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      if (!output_ty) return success();
    
      int64_t expected_output_rank = std::max(x_ty.getRank(), y_ty.getRank());
      if (output_ty.getRank() != expected_output_rank) {
        return op.emitOpError()
               << "found invalid output rank, expected " << expected_output_rank
               << " but got " << output_ty.getRank();
      }
    
      // Check output batch dim with potential broadcasting.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

          hlo::convertElementsAttr(group_assignment, builder.getIntegerType(64)));
      if (replica_groups.getType().getRank() != 2) {
        return op->emitOpError() << "group_assignment should have rank 2, got "
                                 << replica_groups.getType().getRank();
      }
      return success();
    }
    
    ChannelHandleAttr ConvertChannel(OpBuilder& builder, int64_t channel_id,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

      if (!image_type || !image_type.getElementType().isF32() ||
          image_type.getRank() != 4) {
        return func_.emitWarning() << "Image should be a 4D float tensor";
      }
    
      auto flow_type = mlir::dyn_cast_or_null<RankedTensorType>(
          func_.getFunctionType().getInput(1));
      if (!flow_type || !flow_type.getElementType().isF32() ||
          flow_type.getRank() != 4) {
        return func_.emitWarning() << "Flow should be a 4D float tensor";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      }
    
      const int64_t rank = input_type.getRank();
    
      IntegerAttr dim_int = ExtractSingleElementAsInteger(split_dim_attr);
    
      // "axis" operand could be a i64 tensor. Resolve it here.
      IntegerAttr dim_i32;
      if (failed(ConvertToI32Attr(dim_int, &dim_i32))) return failure();
    
      int dim = dim_i32.getInt();
      if (dim < 0) dim += rank;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

      for (int i : llvm::seq<int>(1, num_dims - 1)) {
        Value input_size_i = GetDimValue(builder, loc, input_shape_value, i);
        const int stride_i = mlir::cast<IntegerAttr>(strides[i]).getInt();
        const int dilation_i = mlir::cast<IntegerAttr>(dilations[i]).getInt();
        const int filter_i = filter_shape.getDimSize(i - 1);
        Value pad_i_low, pad_i_high;
        GetSamePaddingValues(builder, loc, input_size_i, filter_i, dilation_i,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top