toDLPack#
Fully qualified name: isaacsim::common::array::toDLPack
-
DLTensor isaacsim::common::array::toDLPack(const Array &array)#
Creates a borrowed DLPack tensor view of an Array without copying its data.
The returned tensor aliases
arrayand points into its shape metadata. It remains valid only whilearrayis alive and is neither moved from nor assigned. The strides pointer is null to denote the Array’s C-contiguous layout.This function does not perform stream synchronization.