tvm
|
A managed object in the TVM runtime. More...
#include <tvm/ffi/cast.h>
#include <tvm/ffi/object.h>
#include <tvm/ffi/optional.h>
#include <tvm/runtime/base.h>
#include <utility>
Go to the source code of this file.
Namespaces | |
tvm | |
Performance counters for profiling via the PAPI library. | |
tvm::runtime | |
Macros | |
#define | TVM_DEFINE_DEFAULT_COPY_MOVE_AND_ASSIGN(TypeName) |
#define | TVM_DEFINE_OBJECT_REF_COW_METHOD(ObjectName) |
Define CopyOnWrite function in an ObjectRef. More... | |
#define | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE_WITHOUT_DEFAULT_CONSTRUCTOR( TypeName, ParentType, ObjectName) |
#define | TVM_STR_CONCAT_(__x, __y) __x##__y |
#define | TVM_STR_CONCAT(__x, __y) TVM_STR_CONCAT_(__x, __y) |
Enumerations | |
enum | tvm::runtime::TypeIndex : int32_t { tvm::runtime::kRuntimeModule = TVMFFITypeIndex::kTVMFFIModule , tvm::runtime::kRuntimeTensor = TVMFFITypeIndex::kTVMFFITensor , tvm::runtime::kRuntimeShape = TVMFFITypeIndex::kTVMFFIShape , tvm::runtime::kCustomStaticIndex = TVMFFITypeIndex::kTVMFFIDynObjectBegin - 16 , tvm::runtime::kRuntimePackedFunc = kCustomStaticIndex + 1 , tvm::runtime::kRuntimeDiscoDRef = kCustomStaticIndex + 2 , tvm::runtime::kRuntimeRPCObjectRef = kCustomStaticIndex + 3 , tvm::runtime::kRuntimeString , tvm::runtime::kRuntimeMap , tvm::runtime::kRuntimeArray , tvm::runtime::kStaticIndexEnd } |
Namespace for the list of type index. More... | |
A managed object in the TVM runtime.
#define TVM_DEFINE_DEFAULT_COPY_MOVE_AND_ASSIGN | ( | TypeName | ) |
#define TVM_DEFINE_OBJECT_REF_COW_METHOD | ( | ObjectName | ) |
Define CopyOnWrite function in an ObjectRef.
ObjectName | The Type of the Node. |
CopyOnWrite will generate a unique copy of the internal node. The node will be copied if it is referenced by multiple places. The function returns the raw pointer to the node to allow modification of the content.
#define TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE_WITHOUT_DEFAULT_CONSTRUCTOR | ( | TypeName, | |
ParentType, | |||
ObjectName | |||
) |
#define TVM_STR_CONCAT | ( | __x, | |
__y | |||
) | TVM_STR_CONCAT_(__x, __y) |
#define TVM_STR_CONCAT_ | ( | __x, | |
__y | |||
) | __x##__y |