Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for getUnit (0.16 sec)

  1. pkg/volume/csi/csi_client_test.go

    		metrics.Abnormal, metrics.Message = &abnormal, &message
    	}
    
    	for _, usage := range usages {
    		if usage == nil {
    			continue
    		}
    		unit := usage.GetUnit()
    		switch unit {
    		case csipbv1.VolumeUsage_BYTES:
    			metrics.Available = resource.NewQuantity(usage.GetAvailable(), resource.BinarySI)
    			metrics.Capacity = resource.NewQuantity(usage.GetTotal(), resource.BinarySI)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/validators.cc

      if (mlir::cast<IntegerAttr>(elements.front()).getInt() != 1 ||
          mlir::cast<IntegerAttr>(elements.back()).getInt() != 1)
        return false;
    
      Builder b(op->getContext());
      *x = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[1]).getInt());
      *y = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[2]).getInt());
      *z = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[3]).getInt());
    
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc

      if (!producer) return mlir::failure();
      versions->set_producer(producer.getInt());
    
      auto min_consumer = mlir::dyn_cast_or_null<mlir::IntegerAttr>(
          version_attr.get("min_consumer"));
      if (min_consumer) versions->set_min_consumer(min_consumer.getInt());
    
      auto bad_consumers = mlir::dyn_cast_or_null<mlir::ArrayAttr>(
          version_attr.get("bad_consumers"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

        "$_builder.getI32IntegerAttr($0.cast<IntegerAttr>().getInt())">;
    
    // Builds a constant bool attribute.
    class GetBoolAttr<int value> :
        NativeCodeCall<"$_builder.getBoolAttr(" # value #")">;
    
    // Converts an integer attribute $0 to 64-bit with builder.
    def convertIntAttrTo64Bit : NativeCodeCall<
        "$_builder.getI64IntegerAttr($0.cast<IntegerAttr>().getInt())">;
    
    // Extracts the single integer element from $_self.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

        return success();
      }
      return op->emitOpError() << "module already contains an attribute "
                               << attr_name << "=" << ex_attr_value.getInt()
                               << ", overwritting to a new value "
                               << attr_value.getInt() << " is not allowed.";
    }
    
    LogicalResult SetCollectiveInfo(IntegerAttr group_size, IntegerAttr group_key,
                                    Operation* op) {
    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/tftext_utils.cc

        fbb.Add(static_cast<int32_t>(
            mlir::dyn_cast<IntegerAttr>(*(hash_seed.getValue().data() + i))
                .getInt()));
      }
      fbb.EndVector(vector_start, /*typed=*/true, /*fixed=*/false);
    
      auto buckets = mlir::dyn_cast_or_null<IntegerAttr>(attrs.get("buckets"));
      fbb.Int("buckets", buckets.getInt());
    
      fbb.EndMap(start_map);
      fbb.Finish();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      ArrayAttr stride = mlir::dyn_cast<ArrayAttr>(identifier_to_attr["strides"]);
      const int stride_h = mlir::cast<IntegerAttr>(stride[1]).getInt();
      const int stride_w = mlir::cast<IntegerAttr>(stride[2]).getInt();
      return rewriter.getI64ArrayAttr({stride_h, stride_w});
    }
    
    Attribute GetLhsDilationValue(PatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      int n;
      if (point.isParent()) {
        // The op itself branches to `init` first.
        regions.push_back(
            RegionSuccessor(&getInit(), getInit().front().getArguments()));
      } else if (point.getRegionOrNull() == &getInit()) {
        // `init` branches to `next`, passing along the arguments given to `init`'s
        // yield. Said arguments precede the "other args".
        n = getInitFuncOtherArgs().size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
Back to top