#include <tvm/node/reflection.h>
#include <utility>
Go to the source code of this file.
|
| tvm |
| Performance counters for profiling via the PAPI library.
|
|
| tvm::tir |
|
|
using | tvm::tir::FInstructionApply = runtime::TypedPackedFunc< Array< ObjectRef >(Schedule sch, const Array< ObjectRef > &inputs, const Array< ObjectRef > &attrs, const Optional< ObjectRef > &decision)> |
| Type of the functor that applies the instruction to a TensorIR schedule. More...
|
|
using | tvm::tir::FInstructionAsPython = runtime::TypedPackedFunc< String(const Array< ObjectRef > &inputs, const Array< ObjectRef > &attrs, const Optional< ObjectRef > &decision, const Array< String > &outputs)> |
| Type of the functor that converts the instruction to a statement in python syntax. More...
|
|
using | tvm::tir::FInstructionAttrsAsJSON = runtime::TypedPackedFunc< ObjectRef(Array< ObjectRef > attrs)> |
| Type of the functor that serialize its attributes to JSON. More...
|
|
using | tvm::tir::FInstructionAttrsFromJSON = runtime::TypedPackedFunc< Array< ObjectRef >(ObjectRef json_attrs)> |
| Type of the functor that deserialize its attributes from JSON. More...
|
|
◆ TVM_INST_KIND_REGISTER_VAR_DEF
A helper macro to register InstructionKind, only used in TVM_REGISTER_INST_KIND
- Note
- This macro is not user-facing.
- See also
- TVM_REGISTER_INST_KIND
◆ TVM_REGISTER_INST_KIND
#define TVM_REGISTER_INST_KIND |
( |
|
InstructionKindName | ) |
|
Value:
static InstructionKindRegEntry & RegisterOrGet(const String &name)
InstructionKindRegEntry & set_name()
Definition: instruction.h:241
#define TVM_INST_KIND_REGISTER_VAR_DEF
A helper macro to register InstructionKind, only used in TVM_REGISTER_INST_KIND
Definition: instruction.h:212
#define TVM_STR_CONCAT(__x, __y)
Definition: object.h:716
Register an InstructionKind.
- Parameters
-
InstructionKindName | The name of the InstructionKind |
Example:
.set_is_pure(false)
.set_apply_to_schedule(ApplyToSchedule)
.set_attrs_as_json(AttrsAsJSON)
.set_attrs_from_json(AttrsFromJSON)
.set_as_python(AsPython);
#define TVM_REGISTER_INST_KIND(InstructionKindName)
Register an InstructionKind.
Definition: instruction.h:232