Managed reference to AllocBufferNode.
More...
#include <stmt.h>
Managed reference to AllocBufferNode.
◆ AllocBuffer()
| tvm::tirx::AllocBuffer::AllocBuffer |
( |
Buffer |
buffer, |
|
|
ffi::Map< ffi::String, ffi::Any > |
annotations = ffi::Map< ffi::String, ffi::Any >(), |
|
|
Span |
span = Span() |
|
) |
| |
◆ ConstantAllocationSize()
| std::optional<int64_t> tvm::tirx::AllocBuffer::ConstantAllocationSize |
( |
| ) |
const |
|
inline |
If the buffer's shape is constant, return the total number of elements.
- Returns
- The product of all shape extents if all are constant, std::nullopt otherwise.
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
| tvm::tirx::AllocBuffer::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
AllocBufferNode |
| ) |
|
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE()
The documentation for this class was generated from the following file: