Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DemangleAttributeName (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h

    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);
    
    // Returns the type of a mangled string, or kUnknown.
    MangledKind GetMangledKind(absl::string_view str);
    
    // Return a TensorShapeProto mangled as a string.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 28 22:08:30 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc

      return absl::StrCat(kAttributePrefix, str);
    }
    
    bool IsMangledAttributeName(absl::string_view str) {
      return absl::StartsWith(str, kAttributePrefix);
    }
    
    absl::string_view DemangleAttributeName(absl::string_view str) {
      DCHECK(IsMangledAttributeName(str));
      return str.substr(std::strlen(kAttributePrefix));
    }
    
    MangledKind GetMangledKind(absl::string_view str) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          // In MLIR, attributes for functions requires dialect prefix. We need to
          // remove TF dialect prefix before converting to AttrValue.
          name = mangling_util::DemangleAttributeName(name);
        }
        AttrValue value;
        if (auto symbol_ref = mlir::dyn_cast<mlir::SymbolRefAttr>(attr)) {
          TF_RETURN_IF_ERROR(ConvertAttribute(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top