Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for NamedAttribute (0.78 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

    // of the index path attribute.
    SmallVector<NamedAttribute> ReplaceBoundInputAttrWithIndexPathAttr(
        const ArrayRef<NamedAttribute> arg_attrs, const StringRef index_path,
        Builder& builder) {
      // Keep all other attributes except the tf_saved_model.bound_input attribute,
      // as we are replacing it with tf_saved_model.index_path.
      SmallVector<NamedAttribute> new_arg_attrs;
      for (auto arg_attr : arg_attrs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.td

    // (NamedAttributeList (NamedAttr<"transpose_a"> $transpose_a))
    def NamedAttributeList : NativeCodeCall<"llvm::SmallVector<NamedAttribute>{$0...}">;
    
    // Creates a NamedAttribute given its name and value. Essentially creates
    // a pair: {attribute_name, attribute_value}.
    class NamedAttr<string attr_name> :
        NativeCodeCall<"NamedAttribute{$_builder.getStringAttr(\"" # attr_name # "\"), $0}">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

            NamedAttribute num_layers_attr(
                num_layers_str,
                IntegerAttr::get(IntegerType::get(fn.getContext(), /*width=*/32),
                                 num_layers));
    
            // current_layer_index Composite Attribute.
            mlir::StringAttr current_layer_str =
                builder.getStringAttr("layer_index");
            NamedAttribute current_layer_attr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h

                                             NamedAttribute named_attr) override;
      LogicalResult verifyRegionResultAttribute(Operation *op,
                                                unsigned region_index,
                                                unsigned result_index,
                                                NamedAttribute named_attr) override;
      LogicalResult verifyOperationAttribute(Operation *op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 03:21:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    void CopyAttributes(Operation *from, Operation *to, Predicate P) {
      for (const NamedAttribute &attr : from->getAttrs())
        if (P(attr)) to->setAttr(attr.getName(), attr.getValue());
    }
    
    // Copies attributes whose name begins with an _ from `from` to `to`.
    inline void CopyUnderscoredAttributes(Operation *from, Operation *to) {
      CopyAttributes(from, to, [](const NamedAttribute &attr) {
        return attr.getName().strref().front() == '_';
      });
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc

    LogicalResult SmuggleOp(Operation* op, PatternRewriter& rewriter) {
      auto call_target =
          rewriter.getNamedAttr("call_target_name", op->getName().getIdentifier());
      SmallVector<NamedAttribute> attrs{op->getAttrs()};
      attrs.push_back(call_target);
      auto custom_call = rewriter.create<mlir::stablehlo::CustomCallOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(), attrs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 01:14:04 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc

              versions.bad_consumers().data(),
              versions.bad_consumers().data() + versions.bad_consumers().size())));
      module->setAttr("tf.versions",
                      b.getDictionaryAttr(llvm::ArrayRef<mlir::NamedAttribute>(
                          {producer, min_consumer, bad_consumers})));
    }
    
    mlir::LogicalResult ExtractTfVersions(mlir::ModuleOp module,
                                          VersionDef* versions) {
      versions->Clear();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/export_utils.h

    // "name" and "device" attributes are ignored by default. Use attrs_to_ignore to
    // specify any other attributes that should be ignored.
    Status ConvertAttributes(
        llvm::ArrayRef<mlir::NamedAttribute> attrs,
        const absl::flat_hash_set<absl::string_view>& attrs_to_ignore,
        bool remove_ref_type, AttrValueMap* values);
    
    // Fill in the contents of TensorShapeProto for the given shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

          return true;
        }
      }
    
      SymbolTable symbol_table(op->getParentOfType<ModuleOp>());
      // Check the functions associated to CaseOp, IfOp and WhileOp.
      for (const NamedAttribute& attr : op->getAttrs()) {
        FlatSymbolRefAttr symbol_attr =
            dyn_cast_or_null<FlatSymbolRefAttr>(attr.getValue());
        if (!symbol_attr) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

                {}, TF::ResourceType::get(ArrayRef<TensorType>{tensor_type},
                                          builder.getContext()))},
            ArrayRef<Value>{},
            ArrayRef<NamedAttribute>{
                builder.getNamedAttr("device", device_attr),
                builder.getNamedAttr("container",
                                     variable_v2_op.getContainerAttr()),
                builder.getNamedAttr("shared_name",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top