- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MangleAttributeName (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h
// Mangles an attribute name, marking the attribute as a TensorFlow attribute. string MangleAttributeName(absl::string_view str); // Returns true if 'str' was mangled with MangleAttributeName. bool IsMangledAttributeName(absl::string_view str); // Demangles an attribute name that was manged with MangleAttributeName. // REQUIRES: IsMangledAttributeName returns true. absl::string_view DemangleAttributeName(absl::string_view str);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 28 22:08:30 UTC 2020 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc
const char kAttributePrefix[] = "tf."; const char kDataTypePrefix[] = "tfdtype$"; const char kTensorShapePrefix[] = "tfshape$"; const char kTensorPrefix[] = "tftensor$"; } // namespace string MangleAttributeName(absl::string_view str) { return absl::StrCat(kAttributePrefix, str); } bool IsMangledAttributeName(absl::string_view str) { return absl::StartsWith(str, kAttributePrefix); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
// kFunc attribute and it is treated as normal one. TF_ASSIGN_OR_RETURN(auto attr, ConvertAttributeValue(name_and_value.second)); std::string attr_name = mangling_util::MangleAttributeName(name_and_value.first); attributes.push_back(builder_.getNamedAttr(attr_name, attr)); } // Checks opdef stateful attribute and import that as Function Attribute
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0)