Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 310 for attr_ (0.42 sec)

  1. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

    }
    
    LogicalResult ConvertNgrams(func::FuncOp func, llvm::StringRef api,
                                FuncAttr attr) {
      func.eraseBody();
      func.addEntryBlock();
      func->setAttr(kTFImplements, attr);
      OpBuilder builder(func.getBody());
      std::string custom_option_buffer;
      if (failed(CreateNgramsCustomOption(func, attr.getAttrs(),
                                          custom_option_buffer))) {
        return failure();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. src/log/slog/logger_test.go

    	for _, test := range []struct {
    		args []any
    		want []Attr
    	}{
    		{nil, nil},
    		{[]any{"a", 1}, []Attr{Int("a", 1)}},
    		{[]any{"a", 1, "b", "two"}, []Attr{Int("a", 1), String("b", "two")}},
    		{[]any{"a"}, []Attr{String(badKey, "a")}},
    		{[]any{"a", 1, "b"}, []Attr{Int("a", 1), String(badKey, "b")}},
    		{[]any{"a", 1, 2, 3}, []Attr{Int("a", 1), Int(badKey, 2), Int(badKey, 3)}},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/xml/DomUtil.java

                final Attr attr = (Attr) attrs.item(i);
                buf.append(' ');
                appendAttr(attr, buf);
            }
        }
    
        /**
         * {@link Attr}の文字列表現を追加します。
         *
         * @param attr
         *            属性。{@literal null}であってはいけません
         * @param buf
         *            文字列バッファ。{@literal null}であってはいけません
         */
        public static void appendAttr(final Attr attr, final StringBuilder buf) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

      EXPECT_EQ(shapes.size(), 0);
      TF_CHECK_OK(GetNodeAttr(host_compute_1->attrs(), "shapes", &shapes));
      EXPECT_EQ(shapes.size(), 1);
      EXPECT_EQ(shapes[0].dim_size(), 1);
      // Check XlaHostCompute nodes' "shape_inference_graph" attr. Both should have
      // empty values.
      NameAttrList shape_inference_graph;
      TF_CHECK_OK(GetNodeAttr(host_compute_0->attrs(), "shape_inference_graph",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top