MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MaybeAbiDemangle

Function MaybeAbiDemangle

tensorflow/core/platform/abi.cc:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace port {
39
40string MaybeAbiDemangle(const char* name) {
41#if defined(_MSC_VER)
42 std::unique_ptr<char> demangled{__unDName(nullptr, name, 0, std::malloc,
43 std::free,
44 static_cast<unsigned short>(0))};
45
46 return string(demangled.get() != nullptr ? demangled.get() : name);
47#else
48 int status = 0;
49 std::unique_ptr<char, void (*)(void*)> res{
50 abi::__cxa_demangle(name, nullptr, nullptr, &status), std::free};
51 return (status == 0) ? res.get() : name;
52#endif
53}
54
55} // namespace port
56} // namespace tensorflow

Callers 11

TypeNameVariantImplFunction · 0.85
RegisterDeviceCopyFnMethod · 0.85
VariantDeviceCopyFunction · 0.85
RegisterUnaryOpFnMethod · 0.85
RegisterBinaryOpFnMethod · 0.85
TESTFunction · 0.85
CurrentStackTraceFunction · 0.85
SaveRecordMethod · 0.85

Calls 1

getMethod · 0.45

Tested by 1

TESTFunction · 0.68