Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MangleAttributeName (0.25 sec)

  1. 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)
  2. 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)
Back to top