warp.to_dlpack#

warp.to_dlpack(wp_array)[source]#

Convert a Warp array to another type of DLPack-compatible array.

Parameters:

wp_array (array) – The source Warp array that will be converted.

Returns:

A capsule containing a DLManagedTensor that can be converted to another array type without copying the underlying memory.