Function TVMFFIEnvGetDLPackManagedTensorAllocator

Function TVMFFIEnvGetDLPackManagedTensorAllocator#

Function Documentation#

DLPackManagedTensorAllocator TVMFFIEnvGetDLPackManagedTensorAllocator()#

FFI function get the current DLPackManagedTensorAllocator stored in context.

This function first queries the global context, and if not found, queries the thread-local context.

Returns:

The current setted DLPackManagedTensorAllocator