Allocate a buffer that can be used in body.
More...
#include <stmt.h>
Allocate a buffer that can be used in body.
◆ ConstantAllocationSize() [1/2]
int64_t tvm::tir::AllocateConstNode::ConstantAllocationSize |
( |
| ) |
const |
|
inline |
If the buffer size is constant, return the size. Otherwise return 0.
- Returns
- The result.
◆ ConstantAllocationSize() [2/2]
static int64_t tvm::tir::AllocateConstNode::ConstantAllocationSize |
( |
const Array< PrimExpr > & |
extents | ) |
|
|
static |
If the buffer size is constant, return the size. Otherwise return 0.
- Parameters
-
extents | The extents of the buffer. |
- Returns
- The result.
◆ RegisterReflection()
static void tvm::tir::AllocateConstNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_DECLARE_FINAL_OBJECT_INFO()
◆ _type_key
constexpr const char* tvm::tir::AllocateConstNode::_type_key = "tir.AllocateConst" |
|
staticconstexpr |
◆ annotations
Map<String, ffi::Any> tvm::tir::AllocateConstNode::annotations |
Additional annotations about the allocation.
These annotations can be used as auxiliary hint to future transformations.
◆ body
Stmt tvm::tir::AllocateConstNode::body |
◆ buffer_var
Var tvm::tir::AllocateConstNode::buffer_var |
◆ data
The optional data associated to the constant.
◆ dtype
DataType tvm::tir::AllocateConstNode::dtype |
◆ extents
Array<PrimExpr> tvm::tir::AllocateConstNode::extents |
The extents of the buffer.
◆ irmod_storage_idx
Optional<Integer> tvm::tir::AllocateConstNode::irmod_storage_idx |
If the PrimFunc containing the Stmt is added to IRModule, this is an optional index to indicate the index within "constants" attribute, that is a Array<NDArray> of IRModule.
The documentation for this class was generated from the following file: