Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dmlc/dlpack
/ types & classes
Types & classes
16 in github.com/dmlc/dlpack
⨍
Functions
20
◇
Types & classes
16
↓ 1 callers
Class
DLDevice
Represents the device where DLTensor memory is allocated. The device is represented by the pair of fields: device_type: DLDeviceType
apps/numpy_dlpack/dlpack/dlpack.py:40
↓ 1 callers
Class
_Holder
A wrapper that combines a pycapsule and array_interface for consumption by numpy. Parameters ---------- array_interface : dict A
apps/numpy_dlpack/dlpack/to_numpy.py:41
↓ 1 callers
Class
_Holder
A wrapper around a numpy array to keep track of references to the underlying memory. Parameters ---------- np_array : np.ndarray
apps/numpy_dlpack/dlpack/from_numpy.py:15
Class
DLDataType
Descriptor of data type for elements of DLTensor. The data type is described by a triple, `DLDataType.type_code`, `DLDataType.bits`, and `DLDa
apps/numpy_dlpack/dlpack/dlpack.py:72
Class
DLDataTypeCode
An integer that encodes the category of DLTensor elements' data type.
apps/numpy_dlpack/dlpack/dlpack.py:52
Class
DLDeviceType
The enum that encodes the type of the device where DLTensor memory is allocated.
apps/numpy_dlpack/dlpack/dlpack.py:6
Class
DLManagedTensor
Structure storing the pointer to the tensor descriptor, deleter callable for the tensor descriptor, and pointer to some additional data. These
apps/numpy_dlpack/dlpack/dlpack.py:130
Class
DLManagedTensor
include/dlpack/dlpack.h:294
Class
DLManagedTensor
include/dlpack/dlpack.h:307
Class
DLManagedTensorVersioned
include/dlpack/dlpack.h:341
Class
DLManagedTensorVersioned
include/dlpack/dlpack.h:360
Class
DLPackExchangeAPI
include/dlpack/dlpack.h:607
Class
DLPackExchangeAPIHeader
include/dlpack/dlpack.h:513
Class
DLPackExchangeAPIHeader
include/dlpack/dlpack.h:528
Class
DLTContainer
Example container wrapping of DLTensor.
contrib/dlpack/dlpackcpp.h:21
Class
DLTensor
Structure describing strided layout of DLTensor. Fields are: data: void pointer device: DLDevice ndim: number of indices nee
apps/numpy_dlpack/dlpack/dlpack.py:103