Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 279 for attr_ (0.05 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

              attrs.push_back(named_attr);
              break;
            }
            case flexbuffers::FBT_VECTOR_BOOL: {
              llvm::SmallVector<bool> vec;
              const auto& vector = value.AsTypedVector();
              for (size_t i = 0; i < vector.size(); i++) {
                vec.push_back(vector[i].AsBool());
              }
              attrs.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_util.cc

      auto attr = n.attrs().Find(attr_name);
      if (!attr) {
        return std::nullopt;
      } else {
        return attr->s();
      }
    }
    
    // Adds a value to the node's list attribute.
    template <typename T>
    Status AppendToListAttr(Node* n, const string& attr_name, const string& value) {
      std::vector<T> attr_value;
      Status s = GetNodeAttr(n->attrs(), attr_name, &attr_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/cc_op_gen.cc

        }
      }
      // Add the static functions to set optional attrs
      if (op_info.has_optional_attrs) {
        strings::StrAppend(&class_decl, "\n");
        for (int i = 0; i < op_info.graph_op_def.attr_size(); ++i) {
          const auto& attr(op_info.graph_op_def.attr(i));
          const auto& api_def_attr(op_info.api_def.attr(i));
          if ((op_info.inferred_input_attrs.find(attr.name()) !=
               op_info.inferred_input_attrs.end()) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      }
    
      if (attrs.empty()) return;
      os << "<";
    
      if (attrs.size() > 1) {
        os << "[";
      }
    
      llvm::interleaveComma(attrs, os,
                            [&](StringAttr attr) { os << attr.getValue(); });
    
      if (attrs.size() > 1) {
        os << "]";
      }
      os << ">";
    }
    
    }  // namespace TFR
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/cc_op_gen_util.cc

        }
      }
    
      // Process attrs
      string required_attrs_comment;
      string optional_attrs_comment;
      for (int i = 0; i < graph_op_def.attr_size(); ++i) {
        // ApiDef attributes must be in the same order as in OpDef since
        // we initialize ApiDef based on OpDef.
        const auto& attr(graph_op_def.attr(i));
        const auto& api_def_attr(api_def.attr(i));
        CHECK_EQ(attr.name(), api_def_attr.name());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

    Attribute RewriteTFRCallOp::ProcessAttributeValue(Attribute attr,
                                                      StringAttr attr_type) const {
      if (!attr_type) return attr;
    
      if (attr_type.getValue() == "tensor") {
        if (auto f = mlir::dyn_cast<FloatAttr>(attr)) {
          RankedTensorType type = RankedTensorType::get({}, f.getType());
          return DenseFPElementsAttr::get(type, attr);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/compilability_check_util.cc

        it->second.second.emplace_back(std::move(node_info));
      }
    }
    
    // Returns `true` iff node has a given `attr` set to `true`. Returns `false`
    // both for the missing attr, and the attr set to `false`.
    static bool HasBoolAttr(const NodeDef& node, const char* attr) {
      const auto& it = node.attr().find(attr);
      return it != node.attr().end() && it->second.b();
    }
    
    bool CanCreateXlaKernel(const NodeDef& node_def) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java

                Map<String, String> attrs = dominant.getAttributes();
                List<XmlNode> children = null;
    
                for (Map.Entry<String, String> attr : recessive.getAttributes().entrySet()) {
                    String key = attr.getKey();
                    if (isEmpty(attrs.get(key))) {
                        if (attrs == dominant.getAttributes()) {
                            attrs = new HashMap<>(attrs);
                        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 18K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        llvm::SmallVectorImpl<mlir::NamedAttribute> &output) {
      for (mlir::NamedAttribute attr : attrs) {
        if (attr.getName().strref().contains(
                mlir::tfg::TFGraphDialect::getDeviceAttrKey())) {
          tensorflow::DeviceNameUtils::ParsedName parsed_name;
          if (!tensorflow::DeviceNameUtils::ParseFullName(
                  mlir::cast<mlir::StringAttr>(attr.getValue()).getValue().str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/IsolatableSerializerRegistryTest.groovy

        }
    
        def "can serialize/deserialize isolated Attribute values"() {
            Attribute attr1 = Attribute.of("foo", String.class)
            Attribute attr2 = Attribute.of("bar", SomeType.class)
            Isolatable<?>[] isolatables = [isolatableFactory.isolate(attr1), isolatableFactory.isolate(attr2)]
    
            when:
            serialize(isolatables)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top