Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for attr_key (0.12 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top