24 #ifndef TVM_TARGET_TARGET_INFO_H_ 25 #define TVM_TARGET_TARGET_INFO_H_ 52 v->Visit(
"unit_bits", &unit_bits);
53 v->Visit(
"max_num_bits", &max_num_bits);
54 v->Visit(
"max_simd_bits", &max_simd_bits);
55 v->Visit(
"head_address", &head_address);
58 static constexpr
const char*
_type_key =
"MemoryInfo";
76 #endif // TVM_TARGET_TARGET_INFO_H_ int64_t max_simd_bits
maximum number of bits to be used in simd op
Definition: target_info.h:44
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
MemoryInfo GetMemoryInfo(const std::string &scope)
get memory info given scope
Defines memory info.
Definition: target_info.h:63
base class of all object containers.
Definition: object.h:167
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
int64_t unit_bits
The addressable unit.
Definition: target_info.h:40
void VisitAttrs(AttrVisitor *v)
Definition: target_info.h:51
#define TVM_DEFINE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:713
Base class of all object reference.
Definition: object.h:511
static constexpr const char * _type_key
Definition: target_info.h:58
PrimExpr head_address
head address of the buffer, if visible to CPU This address can be None.
Definition: target_info.h:49
Reference to PrimExprNode.
Definition: expr.h:114
Memory information of special memory region. Use MemoryInfo as its container type.
Definition: target_info.h:37
TVM_DECLARE_FINAL_OBJECT_INFO(MemoryInfoNode, Object)
int64_t max_num_bits
Maximum number of bits supported in the memory.
Definition: target_info.h:42