tvm
|
An object that exists on all workers. More...
#include <session.h>
Public Member Functions | |
~DRefObj () | |
ffi::Any | DebugGetFromRemote (int worker_id) |
Get the value of a DRef from a remote worker. More... | |
void | DebugCopyFrom (int worker_id, ffi::AnyView source) |
Copy from the NDArray provided to a remote worker. More... | |
TVM_FFI_DECLARE_STATIC_OBJECT_INFO (DRefObj, Object) | |
Public Attributes | |
int64_t | reg_id |
The id of the register. More... | |
ObjectRef | session {nullptr} |
Back-pointer to the host controler session. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "runtime.disco.DRef" |
static constexpr const uint32_t | _type_index = TypeIndex::kRuntimeDiscoDRef |
static constexpr const bool | _type_final = true |
An object that exists on all workers.
The controler assigns a unique "register id" to each object, and the worker uses this id to refer to the object residing on itself.
|
inline |
\ brief Send dellocation command for reg_id
|
inline |
|
inline |
Get the value of a DRef from a remote worker.
worker_id | The id of the worker to be fetched from. |
tvm::runtime::DRefObj::TVM_FFI_DECLARE_STATIC_OBJECT_INFO | ( | DRefObj | , |
Object | |||
) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
int64_t tvm::runtime::DRefObj::reg_id |
The id of the register.
ObjectRef tvm::runtime::DRefObj::session {nullptr} |
Back-pointer to the host controler session.