pub unsafe extern "C" fn nn_context_init(
engine: *mut NNEngine,
memory_size: usize,
memory: *mut c_void,
cache_size: usize,
cache: *mut c_void,
) -> *mut NNContextExpand description
Initializes an NNContext and allocates required memories. If any of the pointers are NULL malloc will be called automatically to create the memory using the provided sizes. For memory_size and cache_size if these are 0 then they will not be initialized.
@public @memberof NNContext @since 2.0