1 #ifndef C10_UTIL_TYPE_H_ 2 #define C10_UTIL_TYPE_H_ 8 #include "c10/macros/Macros.h" 13 C10_API std::string
demangle(
const char* name);
19 static const auto& name = *(
new std::string(
demangle(
typeid(
T).name())));
22 return "(RTTI disabled, cannot show name)";
28 #endif // C10_UTIL_TYPE_H_
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...
std::string demangle(const char *name)
Utility to demangle a C++ symbol name.
const char * demangle_type()
Returns the printable name of the type.