![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
A versioned and managed C Tensor object, manage memory of DLTensor. More...
#include <DLPack.h>

Public Attributes | |
| DLPackVersion | version |
| The API and ABI version of the current managed Tensor. More... | |
| void * | manager_ctx |
| the context of the original host framework. More... | |
| void(* | deleter )(struct DLManagedTensorVersioned *self) |
| Destructor. More... | |
| uint64_t | flags |
| Additional bitmask flags information about the tensor. More... | |
| DLTensor | dl_tensor |
| DLTensor which is being memory managed. More... | |
A versioned and managed C Tensor object, manage memory of DLTensor.
This data structure is intended to facilitate the borrowing of DLTensor by another framework. It is not meant to transfer the tensor. When the borrowing framework doesn't need the tensor, it should call the deleter to notify the host that the resource is no longer needed.
| void(* DLManagedTensorVersioned::deleter) (struct DLManagedTensorVersioned *self) |
Destructor.
This should be called to destruct manager_ctx which holds the DLManagedTensorVersioned. It can be NULL if there is no way for the caller to provide a reasonable destructor. The destructor deletes the argument self as well.
Definition at line 386 of file DLPack.h.
Referenced by cloudViewer::core::pybind_core_tensor().
| DLTensor DLManagedTensorVersioned::dl_tensor |
| uint64_t DLManagedTensorVersioned::flags |
Additional bitmask flags information about the tensor.
By default the flags should be set to 0.
| void* DLManagedTensorVersioned::manager_ctx |
the context of the original host framework.
Stores DLManagedTensorVersioned is used in the framework. It can also be NULL.
| DLPackVersion DLManagedTensorVersioned::version |
The API and ABI version of the current managed Tensor.
Definition at line 370 of file DLPack.h.
Referenced by cloudViewer::core::pybind_core_tensor().