/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/frontend
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/name_mangler.h (669B)
#pragma once
#include
#include
namespace torch {
namespace jit {
/**
* class NameMangler
*
* Utility to mangle qualified names in order to make them unique. We use this
* in various places where we to de-duplicate qualified names.
*/
class TORCH_API NameMangler {
public:
// Given a qualified name, return a mangled version that is guaranteed to be
// unique with respect to previous/future calls of `mangled()` on this name
// mangler instance.
c10::QualifiedName mangle(const c10::QualifiedName& name);
private:
size_t mangleIndex_ = 0;
};
} // namespace jit
} // namespace torch