Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for attr_key (0.25 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

              device.has_job && device.job == jobType) {
            for (const auto& attr : node->attrs()) {
              auto attr_key = attr.first;
              auto attr_value = attr.second;
              if (attr_key == attrKey &&
                  attr_value.value_case() == AttrValue::kType &&
                  attr_value.type() == DT_RESOURCE) {
                return true;
                break;
              }
            }
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          auto attr_key = tensor_type.getAttrKeys().front();
          Builder builder(signature.getContext());
          if (auto attr = attrs.lookup(attr_key.getValue())) {
            output_types->push_back(
                UnrankedTensorType::get(mlir::cast<TypeAttr>(attr).getValue()));
          } else if (Type element_type =
                         GetFixedElementType(attr_key.getValue(), builder)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

    }
    
    // Helper method that returns list of all strings in a StringAttr identified
    // by 'attr_key' and values are separated by a comma.
    llvm::SmallVector<llvm::StringRef, 2> GetStringsFromAttrWithSeparator(
        mlir::DictionaryAttr attr, const std::string& attr_key) {
      llvm::SmallVector<llvm::StringRef, 2> result;
      if (auto str = attr.get(attr_key).dyn_cast_or_null<mlir::StringAttr>()) {
        str.getValue().split(result, ',', /*MaxSplit=*/-1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

    // by 'attr_key' and values are separated by a comma.
    llvm::SmallVector<llvm::StringRef, 2> GetStringsFromAttrWithSeparator(
        mlir::DictionaryAttr attr, const std::string& attr_key) {
      llvm::SmallVector<llvm::StringRef, 2> result;
      if (auto str = mlir::dyn_cast_or_null<mlir::StringAttr>(attr.get(attr_key))) {
        str.getValue().split(result, ',', /*MaxSplit=*/-1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/model/attr_spec.cc

    namespace tensorflow {
    namespace generator {
    
    AttrSpec AttrSpec::Create(const OpDef::AttrDef& attr_def) {
      return AttrSpec(attr_def);
    }
    
    AttrSpec::AttrSpec(const OpDef::AttrDef& attr_def) {
      name_ = attr_def.name();
      description_ = attr_def.description();
      full_type_ = attr_def.type();
      default_value_ = attr_def.default_value();
      if (str_util::StartsWith(full_type_, "list(")) {
        is_list_ = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  6. pkg/test/fakes/gce_metadata_server/main.go

    	instIDPath     = metaPrefix + "/instance/id"
    	instancePath   = metaPrefix + "/instance/name"
    	zonePath       = metaPrefix + "/instance/zone"
    	attrKey        = "attribute"
    	attrPath       = metaPrefix + "/instance/attributes/{" + attrKey + "}"
    )
    
    var instAttrs = map[string]string{
    	"instance-template": "some-template",
    	"created-by":        "some-creator",
    	"cluster-name":      "test-cluster",
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/model/op_spec.cc

        output_args_.push_back(arg);
      }
      // Parse the attributes.
      for (const OpDef::AttrDef& attr_def : op_def.attr()) {
        AttrSpec attr = AttrSpec::Create(attr_def);
        // Only non-inferred args are added as arguments.
        if (inferred_attrs.find(attr_def.name()) == inferred_attrs.end()) {
          argument_attrs_.push_back(attr);
        }
      }
    }
    
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 01 21:05:56 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc

                           [](const auto& attr_def) {
                             return attr_def.name() == "use_node_name_sharing" &&
                                    attr_def.type() == "bool";
                           }))
            return false;
        }
    
        if (!std::any_of(op_def.attr().begin(), op_def.attr().end(),
                         [](const auto& attr_def) {
                           return attr_def.name() == "shared_name" &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:33:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/ops/gen/model/attr_spec.h

    // Essentially, this represents an OpDef::AttrDef and its context within the Op.
    class AttrSpec {
     public:
      AttrSpec() = default;
      AttrSpec(const AttrSpec& other) = default;
      static AttrSpec Create(const OpDef::AttrDef& attr_def);
    
      const string& name() const { return name_; }
      const string& description() const { return description_; }
      const string& full_type() const { return full_type_; }
      const string& base_type() const { return base_type_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        'SplitV': {'axis': 'split_dim'},
    }
    
    
    def _get_type_from_proto(arg_def=None, attr_def=None):
      if not arg_def:
        if attr_def.type == 'bool':
          return TFRTypes.I1
        elif attr_def.type == 'int32':
          return TFRTypes.I32
        elif attr_def.type == 'int' or attr_def.type == 'int64':
          return TFRTypes.I64
        elif attr_def.type == 'float':
          return TFRTypes.F32
        else:
          return TFRTypes.ATTR
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top