|
Open3D (C++ API)
0.19.0
|
A versioned and managed C Tensor object, manage memory of DLTensor. More...
#include <DLPack.h>
Data Fields | |
| 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.
| 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.