tvm
|
Base node for data producers. More...
#include <buffer.h>
Public Member Functions | |
virtual | ~DataProducerNode () |
destructor. More... | |
virtual Array< PrimExpr > | GetShape () const =0 |
Get the shape of the result. More... | |
virtual DataType | GetDataType () const =0 |
Get the data type of the result. More... | |
virtual String | GetNameHint () const =0 |
Get the name hint of the data producer. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (DataProducerNode, PrimExprConvertibleNode) | |
![]() | |
virtual | ~PrimExprConvertibleNode () |
virtual PrimExpr | ToPrimExpr () const =0 |
TVM_DECLARE_BASE_OBJECT_INFO (PrimExprConvertibleNode, Object) | |
Static Public Attributes | |
static constexpr const char * | _type_key = "tir.DataProducer" |
![]() | |
static constexpr const char * | _type_key = "ir.PrimExprConvertible" |
Base node for data producers.
A DataProducer stores necessary information(e.g. a tensor expression) to produce a multi-dimensional array. The stored information is opaque to the TIR. DataProducer can appear in high-level DSLs that are built on top of the TIR.
A valid TIR PrimFunc should not contain any DataProducer, high level DSLs should lower all DataProducers to Buffers before TIR transformations.
|
inlinevirtual |
destructor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
tvm::tir::DataProducerNode::TVM_DECLARE_BASE_OBJECT_INFO | ( | DataProducerNode | , |
PrimExprConvertibleNode | |||
) |
|
staticconstexpr |