25 #ifndef TVM_IR_GLOBAL_INFO_H_
26 #define TVM_IR_GLOBAL_INFO_H_
44 static constexpr
const char*
_type_key =
"GlobalInfo";
72 v->Visit(
"target", &
target);
107 static constexpr
const char*
_type_key =
"DummyGlobalInfo";
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
A dummy global info sub-class for testing purpose.
Definition: global_info.h:104
TVM_DECLARE_FINAL_OBJECT_INFO(DummyGlobalInfoNode, GlobalInfoNode)
void VisitAttrs(tvm::AttrVisitor *v)
Definition: global_info.h:106
static constexpr const char * _type_key
Definition: global_info.h:107
bool SEqualReduce(const DummyGlobalInfoNode *other, SEqualReducer equal) const
Definition: global_info.h:109
void SHashReduce(SHashReducer hash_reduce) const
Definition: global_info.h:113
Managed reference to DummyGlobalInfoNode.
Definition: global_info.h:121
TVM_DEFINE_OBJECT_REF_METHODS(DummyGlobalInfo, GlobalInfo, DummyGlobalInfoNode)
GlobalInfo are globally static object that are referred by the IR itself. Base node for all global in...
Definition: global_info.h:42
TVM_DECLARE_BASE_OBJECT_INFO(GlobalInfoNode, Object)
static constexpr const bool _type_has_method_sequal_reduce
Definition: global_info.h:45
static constexpr const char * _type_key
Definition: global_info.h:44
static constexpr const bool _type_has_method_shash_reduce
Definition: global_info.h:46
Managed reference to GlobalInfoNode.
Definition: global_info.h:54
TVM_DEFINE_OBJECT_REF_METHODS(GlobalInfo, ObjectRef, GlobalInfoNode)
A Reducer class to reduce the structural equality result of two objects.
Definition: structural_equal.h:137
A Reducer class to reduce the structural hash value.
Definition: structural_hash.h:121
Managed reference class to TargetNode.
Definition: target.h:200
A global info subclass for virtual devices.
Definition: global_info.h:62
Target target
The Target describing how to compile for the virtual device.
Definition: global_info.h:65
void SHashReduce(SHashReducer hash_reduce) const
Definition: global_info.h:82
TVM_DECLARE_FINAL_OBJECT_INFO(VDeviceNode, GlobalInfoNode)
int vdevice_id
The device identifier for the virtual device. This enables us to differentiate between distinct devic...
Definition: global_info.h:69
static constexpr const char * _type_key
Definition: global_info.h:87
bool SEqualReduce(const VDeviceNode *other, SEqualReducer equal) const
Definition: global_info.h:77
MemoryScope memory_scope
Definition: global_info.h:70
void VisitAttrs(tvm::AttrVisitor *v)
Definition: global_info.h:71
Managed reference to VDeviceNode.
Definition: global_info.h:95
VDevice(Target tgt, int dev_id, MemoryScope mem_scope)
TVM_DEFINE_OBJECT_REF_METHODS(VDevice, GlobalInfo, VDeviceNode)
Base class of all object reference.
Definition: object.h:519
base class of all object containers.
Definition: object.h:171
Reference to string objects.
Definition: string.h:98
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
PrimExpr equal(PrimExpr a, PrimExpr b, Span span=Span())
equal
Compilation target object.