An object representing a storage allocation.
More...
#include <memory_manager.h>
An object representing a storage allocation.
◆ ~StorageObj()
tvm::runtime::memory::StorageObj::~StorageObj |
( |
| ) |
|
|
inline |
◆ AllocTensor()
Tensor tvm::runtime::memory::StorageObj::AllocTensor |
( |
int64_t |
offset, |
|
|
ffi::Shape |
shape, |
|
|
DLDataType |
dtype |
|
) |
| |
Allocate an Tensor from a given piece of storage.
◆ AllocTensorScoped()
Tensor tvm::runtime::memory::StorageObj::AllocTensorScoped |
( |
int64_t |
offset, |
|
|
ffi::Shape |
shape, |
|
|
DLDataType |
dtype, |
|
|
ffi::String |
scope = "global" |
|
) |
| |
Allocate an Tensor with memory scope from a given piece of storage.
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
tvm::runtime::memory::StorageObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"vm.Storage" |
, |
|
|
StorageObj |
, |
|
|
Object |
|
|
) |
| |
◆ _type_mutable
constexpr const bool tvm::runtime::memory::StorageObj::_type_mutable = true |
|
staticconstexpr |
◆ allocator
Allocator* tvm::runtime::memory::StorageObj::allocator = nullptr |
The allocator where the storage buffer is allocated from.
◆ buffer
Buffer tvm::runtime::memory::StorageObj::buffer |
The index into the VM function table.
The documentation for this class was generated from the following file: