Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsMangledAttributeName (1 sec)

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

    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);
    
    // Returns the type of a mangled string, or kUnknown.
    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

    string MangleAttributeName(absl::string_view str) {
      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

          // AttrValue inside NodeDef, but we model them using attribute inside
          // MLIR. So we need to ignore them when going back to AttrValue here.
          continue;
        }
        if (mangling_util::IsMangledAttributeName(name)) {
          // In MLIR, attributes for functions requires dialect prefix. We need to
          // remove TF dialect prefix before converting to AttrValue.
          name = mangling_util::DemangleAttributeName(name);
        }
    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