![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
CloudViewer DLPack Tensor manager. More...
Static Public Member Functions | |
| static DLMT * | Create (const Tensor &o3d_tensor) |
| static DLDevice | getDLPackDevice (const Tensor &o3d_tensor) |
| static void | Deleter (DLMT *arg) |
CloudViewer DLPack Tensor manager.
Definition at line 133 of file Tensor.cpp.
|
inlinestatic |
DLManagedTensorVersioned* dmlt is destroyed by calling dmlt->deleter(dmlt). The destruction happens when the DLPack python object goes out of scope, and ultimately it decreases the reference count to the actual data buffer (i.e. dmlt.manager_ctx->o3d_tensor_.GetBlob()) by 1.
Definition at line 181 of file Tensor.cpp.
Referenced by cloudViewer::core::Tensor::ToDLPack(), and cloudViewer::core::Tensor::ToDLPackVersioned().
|
inlinestatic |
Definition at line 208 of file Tensor.cpp.
|
inlinestatic |
Definition at line 187 of file Tensor.cpp.
References cloudViewer::core::Device::CPU, cloudViewer::core::Device::CUDA, cloudViewer::core::Tensor::GetDevice(), cloudViewer::core::Device::GetID(), cloudViewer::core::Device::GetType(), kDLCPU, kDLCUDA, kDLOneAPI, LogError, cloudViewer::core::Device::SYCL, and cloudViewer::core::Device::ToString().