ailiaCreate method
- Pointer<
Pointer< net,AILIANetwork> > - int env_id,
- int num_thread
Creates a network instance.
Parameters:
net: A pointer to the network instance pointerenv_id: The ID of the inference backend used for computation (obtained by ailiaGetEnvironment() ). It is selected automatically if AILIA_ENVIRONMENT_ID_AUTO is specified.num_thread: The upper limit on the number of threads (It is set automatically if AILIA_MULTITHREAD_AUTO is specified.)
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
Creates a network instance. If the inference backend is set to automatic, CPU mode is used, while if BLAS is available, it uses BLAS. Note that if BLAS is used, num_thread may be ignored.
Implementation
int ailiaCreate(
ffi.Pointer<ffi.Pointer<AILIANetwork>> net,
int env_id,
int num_thread,
) {
return _ailiaCreate(
net,
env_id,
num_thread,
);
}