Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for AttrValue (0.62 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/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)
  6. tensorflow/compiler/jit/node_matchers.h

    impl::NodeMatcherProperties Attr(std::pair<string, AttrValue> attrs);
    impl::NodeMatcherProperties Attr(string name);
    
    std::pair<string, AttrValue> AttrLiteralHelper(
        const std::pair<string, bool>& bool_attr);
    
    std::pair<string, AttrValue> AttrLiteralHelper(
        const std::pair<string, absl::Span<const int>>& int_list_attr);
    
    std::pair<string, AttrValue> AttrLiteralHelper(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/bitcast_op_test.cc

                       TensorShape expected_shape, error::Code expected_code) {
      Status status;
      NodeDef def;
      def.set_op("Bitcast");
      def.set_device(DEVICE_CPU);
    
      AttrValue typeAttr;
      SetAttrValue(input_tensor->dtype(), &typeAttr);
    
      AttrValue outTypeAttr;
      SetAttrValue(out_type, &outTypeAttr);
    
      (*def.mutable_attr())["T"] = typeAttr;
      (*def.mutable_attr())["type"] = outTypeAttr;
    
      def.add_input(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. tensorflow/cc/framework/cc_op_gen_util.h

      }
      return ret;
    }
    
    string PrintTensor(const TensorProto& tensor_proto);
    
    string PrintTensorProto(const TensorProto& proto);
    
    string PrintAttrValue(StringPiece, const AttrValue& attr_value);
    
    bool IsEmptyList(const AttrValue::ListValue& list);
    
    string ToCamelCase(StringPiece str);
    
    string SeparateNamespaces(StringPiece str);
    
    // Returns a <string, bool> pair. The string is the C++ type name to be used for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_kernel_creator_test.cc

      std::unique_ptr<DeviceMgr> device_mgr_;
      std::unique_ptr<FunctionLibraryDefinition> lib_def_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    
      std::unique_ptr<OpKernel> kernel_;
    };
    
    AttrValue BoolAttr(bool b) {
      AttrValue v;
      v.set_b(b);
      return v;
    }
    
    TEST_F(XlaKernelCreatorTest, OneFloatOneResourceArgument) {
      FunctionDef fdef = XTimesY();
      (*fdef.mutable_attr())["_XlaMustCompile"] = BoolAttr(true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/func_attr.mlir

    // Tests #tf_type.func attributes are exported as AttrValue.NameAttrList attributes
    // with its attr field populated with nested attributes.
    
    module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 458 : i32}} {
      func.func @main() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 16:41:06 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top