Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 89 of 89 for IntegerAttr (0.24 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

                                           func_def.mutable_attr()));
    
      for (int i = 0, e = function.getNumArguments(); i < e; ++i) {
        if (auto resource_arg_unique_id_attr =
                function.getArgAttrOfType<mlir::IntegerAttr>(
                    i, kResourceArgUniqueIdAttr)) {
          (*func_def.mutable_resource_arg_unique_id())[i] =
              resource_arg_unique_id_attr.getInt();
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    namespace mlir {
    namespace TF {
    
    namespace {
    
    // Creates ConstOp for int32_t value.
    ConstOp createI32ConstOp(int32_t value, Location loc,
                             PatternRewriter* rewriter) {
      auto int_attr = IntegerAttr::get(rewriter->getIntegerType(32), value);
      return rewriter->create<ConstOp>(loc, int_attr);
    }
    
    // Creates ConstantOp for array of int32_t.
    arith::ConstantOp createI32ConstantOp(llvm::ArrayRef<int32_t> values,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

    }
    
    TypeAttr GetQuantizedTypeAttr(const Builder builder, const Type input_type,
                                  const Attribute min, const Attribute max,
                                  const int quant_dim, const IntegerAttr num_bits,
                                  const BoolAttr narrow_range, const bool is_signed,
                                  const bool legacy_float_scale,
                                  const bool use_fake_quant_num_bits) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    // if symmetric quantization is required.
    TypeAttr GetQuantizedTypeAttr(Builder builder, Type input_type, Attribute min,
                                  Attribute max, int quant_dim,
                                  IntegerAttr num_bits, BoolAttr narrow_range,
                                  bool is_signed, bool legacy_float_scale = false,
                                  bool use_fake_quant_num_bits = false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        "whose size is at most " # n>;
    
    // Ensures the given integer attribute has the given value.
    class TFL_IntEqualsTo<int n> : AttrConstraint<
        CPred<"$_self.isa<IntegerAttr>() && "
                "$_self.cast<IntegerAttr>().getInt() == " # n>,
        "whose value is " # n>;
    
    // Ensures the given LSTMKernelType attribute has the given value.
    class TFL_LSTMKernelTypeEqualsTo<string value> : AttrConstraint<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      mlir::ElementsAttr layer_stats = mlir::DenseFPElementsAttr::get(
          tensorflow::GetTypeFromTFTensorShape({2}, b.getF32Type()),
          {min_maxs[0], min_maxs[1]});
      mlir::ElementsAttr axis_stats;
      mlir::IntegerAttr axis;
      if (mins.size() > 1) {
        llvm::SmallVector<int64_t, 4> axis_stats_shape{
            static_cast<int64_t>(mins.size()), 2};
        axis_stats = mlir::DenseFPElementsAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        Value scalar_zero = CreateI32SplatConst(op.getLoc(), rewriter, {}, 0);
        Type shape_dtype = getElementTypeOrSelf(op.getElementShape().getType());
        Value num_elements = operands[1];
        IntegerAttr attr;
        if (matchPattern(num_elements, m_Constant(&attr))) {
          return CreateI32SplatConst(op.getLoc(), rewriter, {1}, attr.getInt());
        }
        if (auto const_op = num_elements.getDefiningOp<TF::ConstOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

             << " at index path: <value>";
          for (auto path_element : current_index_path_) {
            os << ".";
            if (auto integer = mlir::dyn_cast<mlir::IntegerAttr>(path_element)) {
              os << integer.getValue();
            } else {
              auto str = mlir::cast<mlir::StringAttr>(path_element);
              os << str.getValue();
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      TF_DerivedOperandTypeAttr TI = TF_DerivedOperandTypeAttr<0>;
    
      let builders = [
        OpBuilder<(ins "Value":$indices, "Value":$depth, "Value":$on_value,
          "Value":$off_value, "IntegerAttr":$axis)>
      ];
    
      let hasVerifier = 1;
    }
    
    def TF_OneShotIteratorOp : TF_Op<"OneShotIterator", []> {
      let summary = [{
    Makes a "one-shot" iterator that can be iterated only once.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top