- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for attr_key (0.13 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 12:22:33 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
auto attr_key = tensor_type.getAttrKeys().front(); Builder builder(signature.getContext()); if (auto attr = attrs.lookup(attr_key.getValue())) { output_types->push_back( UnrankedTensorType::get(mlir::cast<TypeAttr>(attr).getValue())); } else if (Type element_type = GetFixedElementType(attr_key.getValue(), builder)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
} // Helper method that returns list of all strings in a StringAttr identified // by 'attr_key' and values are separated by a comma. llvm::SmallVector<llvm::StringRef, 2> GetStringsFromAttrWithSeparator( mlir::DictionaryAttr attr, const std::string& attr_key) { llvm::SmallVector<llvm::StringRef, 2> result; if (auto str = attr.get(attr_key).dyn_cast_or_null<mlir::StringAttr>()) { str.getValue().split(result, ',', /*MaxSplit=*/-1,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
// by 'attr_key' and values are separated by a comma. llvm::SmallVector<llvm::StringRef, 2> GetStringsFromAttrWithSeparator( mlir::DictionaryAttr attr, const std::string& attr_key) { llvm::SmallVector<llvm::StringRef, 2> result; if (auto str = mlir::dyn_cast_or_null<mlir::StringAttr>(attr.get(attr_key))) { str.getValue().split(result, ',', /*MaxSplit=*/-1,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
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) -
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) -
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) -
tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 14:33:47 UTC 2024 - 6.2K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tfr/python/tfr_gen.py
'SplitV': {'axis': 'split_dim'}, } def _get_type_from_proto(arg_def=None, attr_def=None): if not arg_def: if attr_def.type == 'bool': return TFRTypes.I1 elif attr_def.type == 'int32': return TFRTypes.I32 elif attr_def.type == 'int' or attr_def.type == 'int64': return TFRTypes.I64 elif attr_def.type == 'float': return TFRTypes.F32 else: return TFRTypes.ATTR
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 27 15:27:03 UTC 2022 - 55.8K bytes - Viewed (0)