ailiaSetTemporaryCachePathA method
Specifies a temporary cache directory.
Parameters:
cache_dir: Temporary cache directory
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
This system uses the specified cache directory to generate and store machine code optimized for each inference backend. Call only once at the start of execution of ailia. It ignores any second and subsequent calls, and automatically returns success. There is no particular problem if it is called from multiple threads, as it provides exclusive control internally. Some functions, such as Vulkan shader cache, cannot be used until this API function is called. Specify the file path obtained by Context.getCacheDir() for cache_dir.
Implementation
int ailiaSetTemporaryCachePathA(
ffi.Pointer<ffi.Char> cache_dir,
) {
return _ailiaSetTemporaryCachePathA(
cache_dir,
);
}