Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for AttrValue (0.12 sec)

  1. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc

    string AttrView::DefaultValue() const {
      const AttrValue &attr_value = attr_.default_value();
      switch (attr_value.value_case()) {
        case AttrValue::VALUE_NOT_SET:
          return "";
        case AttrValue::kType:
          return DataType_Name(attr_value.type());
        case AttrValue::kS:
          return "\"" + attr_value.s() + "\"";
        case AttrValue::kI:
          return std::to_string(attr_value.i());
        case AttrValue::kF:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            String tag = "tag", id = "id", css = "css", attrName = "attrName", attrValue = "attrValue";
            PrunedTag prunedtag = new PrunedTag(tag);
            prunedtag.setAttr(attrName, attrValue);
            prunedtag.setId(id);
            prunedtag.setCss(css);
            assertEquals("PrunedTag [tag=" + tag + ", id=" + id + ", css=" + css + ", attrName=" + attrName + ", attrValue=" + attrValue + "]",
                    prunedtag.toString());
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

          return builder->getStringAttr(value.s());
        case AttrValue::kF:
          return builder->getFloatAttr(builder->getF32Type(), value.f());
        case AttrValue::kB:
          return builder->getBoolAttr(value.b());
        case AttrValue::kType: {
          mlir::Type type;
          TF_RETURN_IF_ERROR(ConvertDataType(value.type(), *builder, &type));
          return mlir::TypeAttr::get(type);
        }
        case AttrValue::kShape:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/PrunedTag.java

                    && StringUtils.compare(attrValue, other.attrValue) == 0;
        }
    
        public void setId(final String id) {
            this.id = id;
        }
    
        public void setCss(final String css) {
            this.css = css;
        }
    
        public void setAttr(final String name, final String value) {
            this.attrName = name;
            this.attrValue = value;
        }
    
        @Override
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          AttrValue nested_value;
          TF_RETURN_IF_ERROR(ConvertAttribute(attr, &nested_value));
          switch (nested_value.value_case()) {
            case AttrValue::kS:
              list->add_s(nested_value.s());
              break;
            case AttrValue::kType:
              list->add_type(nested_value.type());
              break;
            case AttrValue::kShape:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.h

    namespace tensorflow {
    
    using tsl::StatusOr;
    
    // Converts non func AttrValue proto into an MLIR attribute. Func attribute is
    // exclused in this function because the function might be renamed when the
    // function definition is imported.
    absl::StatusOr<mlir::Attribute> ConvertNonFuncAttributeValue(
        const AttrValue& value, mlir::Builder* builder);
    
    // Converts all kinds of AttrValue proto into an MLIR attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                        String attrValue = attrNode.getNodeValue();
                        if (StringUtil.isNotBlank(attrValue)) {
                            // if starting with www, append a protocol
                            if (attrValue.startsWith("www.")) {
                                attrValue = "http://" + attrValue;
                            }
                            return attrValue;
                        }
                    }
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api.cc

                              const tensorflow::AttrValue& default_value,
                              const char* attr_name, TF_Status* status) {
      switch (default_value.value_case()) {
        case tensorflow::AttrValue::kS: {
          const string& v = default_value.s();
          TFE_OpSetAttrString(op, attr_name, v.data(), v.size());
          break;
        }
        case tensorflow::AttrValue::kI:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  9. tensorflow/cc/framework/cc_op_gen_util.cc

          }
        }
        case AttrValue::kB:
          return attr_value.b() ? "true" : "false";
        case AttrValue::kType:
          return DataType_Name(attr_value.type());
        case AttrValue::kShape:
          return PrintTensorShape(attr_value.shape());
        case AttrValue::kTensor:
          return PrintTensorProto(attr_value.tensor());
        case AttrValue::kList: {
          string ret = "{";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  10. tensorflow/c/kernels_test.cc

      def.add_input("input1");
      def.add_input("input2");
      def.add_input("input3");
      def.add_input("input3");
      def.add_input("input3");
    
      AttrValue v0;
      v0.set_type(DataType::DT_INT32);
      v0.set_i(3);
      (*def.mutable_attr())["NumInput3"] = v0;
      AttrValue v1;
      v1.set_type(DataType::DT_FLOAT);
      (*def.mutable_attr())["SomeDataTypeAttr"] = v1;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
Back to top