Function TVMFFIGetCustomAllocator#
Defined in File c_api.h
Function Documentation#
-
TVMFFICustomAllocator *TVMFFIGetCustomAllocator(void)#
Get the process-wide custom allocator.
Note
TVMFFIGetCustomAllocatoralways returns a valid allocator and can be overridden byTVMFFISetCustomAllocator.Note
Not synchronized against a concurrent
TVMFFISetCustomAllocator. The allocator is expected to be installed once during frontend initialization, before objects are created concurrently; reading it afterwards from multiple threads is safe.- Returns:
The currently registered allocator (never NULL).