|
tvm
|
Base node for data producers. More...
#include <buffer.h>
Public Member Functions | |
| virtual | ~DataProducerNode () |
| destructor. More... | |
| virtual ffi::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 ffi::String | GetNameHint () const =0 |
| Get the name hint of the data producer. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO ("tir.DataProducer", DataProducerNode, PrimExprConvertibleNode) | |
Public Member Functions inherited from tvm::PrimExprConvertibleNode | |
| virtual | ~PrimExprConvertibleNode () |
| virtual PrimExpr | ToPrimExpr () const =0 |
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.PrimExprConvertible", PrimExprConvertibleNode, Object) | |
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_FFI_DECLARE_OBJECT_INFO | ( | "tir.DataProducer" | , |
| DataProducerNode | , | ||
| PrimExprConvertibleNode | |||
| ) |