|
tvm
|
Defines the Functor data structures. More...
#include <tvm/runtime/logging.h>#include <tvm/runtime/object.h>#include <cstring>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| class | tvm::NodeFunctor< R(const ObjectRef &n, Args...)> |
Namespaces | |
| tvm | |
| Performance counters for profiling via the PAPI library. | |
Macros | |
| #define | TVM_REG_FUNC_VAR_DEF(ClsName) static TVM_ATTRIBUTE_UNUSED auto& __make_functor##_##ClsName |
| #define | TVM_STATIC_IR_FUNCTOR(ClsName, FField) TVM_STR_CONCAT(TVM_REG_FUNC_VAR_DEF(ClsName), __COUNTER__) = ClsName::FField() |
| Useful macro to set NodeFunctor dispatch in a global static field. More... | |
Defines the Functor data structures.
| #define TVM_REG_FUNC_VAR_DEF | ( | ClsName | ) | static TVM_ATTRIBUTE_UNUSED auto& __make_functor##_##ClsName |
| #define TVM_STATIC_IR_FUNCTOR | ( | ClsName, | |
| FField | |||
| ) | TVM_STR_CONCAT(TVM_REG_FUNC_VAR_DEF(ClsName), __COUNTER__) = ClsName::FField() |
Useful macro to set NodeFunctor dispatch in a global static field.
| ClsName | The name of the class |
| FField | The static function that returns a singleton of NodeFunctor. |