Function TVMFFIEnvGetTensorAllocator

Function TVMFFIEnvGetTensorAllocator#

Function Documentation#

DLPackTensorAllocator TVMFFIEnvGetTensorAllocator()#

FFI function get the current DLPack allocator stored in context.

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

Returns:

The current DLPack allocator.