|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
24 namespace ColorFormatDoc
26 constexpr
const char*
descr = R
"pydeepstream(Color format enum.)pydeepstream";
31 constexpr
const char*
descr = R
"pydeepstream(
32 Tensor abstraction class.
34 :ivar shape: *tuple*, Shape of the tensor.
35 :ivar strides: *tuple*, Strides of the tensor.
36 :ivar dtype: *dtype*, Data type of the tensor.)pydeepstream";
37 constexpr const char*
dlpack = R
"pydeepstream(Get the tensor as DLPack capsule.)pydeepstream";
38 constexpr const char*
dlpack_device = R
"pydeepstream(Get the device type and device ID in DLPack format.)pydeepstream";
39 constexpr const char*
wrap = R
"pydeepstream(
40 Wrap a tensor as a buffer.
42 :arg format: *:class:`ColorFormat`*, Color format of the buffer.
43 :return: *:class:`Buffer`*, Buffer of wrapped tensor.)pydeepstream";
44 constexpr const char*
clone = R
"pydeepstream(Clone a tensor.)pydeepstream";
45 constexpr const char*
to_gpu = R
"pydeepstream(Copy the tensor to GPU given ID of target device.)pydeepstream";
46 constexpr const char*
size = R
"pydeepstream(Get the size of the tensor in bytes.)pydeepstream";
48 Wrap tensor data from other frameworks.
50 :arg object: *object*, Object to wrap. If has __dlpack_device__ attribute, it will fill the :class:`Tensor` from the given DLPack information.
51 Otherwise, it will create an empty :class:`Tensor`
52 :arg format: *str*, Format of the tensor.
53 :return: *:class:`Tensor`*, Wrapped :class:`Tensor`.)pydeepstream";
constexpr const char * dlpack_device
constexpr const char * clone
constexpr const char * to_gpu
constexpr const char * wrap
constexpr const char * size
constexpr const char * descr
constexpr const char * as_tensor
constexpr const char * dlpack