pub unsafe extern "C" fn nn_context_init_ex(
context_memory: *mut c_void,
engine: *mut NNEngine,
memory_size: usize,
memory: *mut c_void,
cache_size: usize,
cache: *mut c_void,
) -> *mut NNContextExpand description
Initializes an NNContext into the provided memory which MUST be at least NN_CONTEXT_SIZEOF bytes. 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