1 #include <ATen/core/interned_strings_class.h> 8 const char*
const qual_name;
9 const char*
const unqual_name;
14 constexpr Entry entries[] = {
15 #define SYMBOL_ENTRY(n, s) {#n "::" #s, #s, n::s, namespaces::n}, 17 FORALL_NS_SYMBOLS(SYMBOL_ENTRY)
23 InternedStrings::InternedStrings()
24 : sym_to_info_(static_cast<size_t>(_keys::num_symbols)) {
31 for (
const auto& entry : entries) {
32 string_to_sym_[entry.qual_name] = entry.sym;
33 sym_to_info_[entry.sym] = {
34 entry.ns_sym, entry.qual_name, entry.unqual_name};
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...