ANeuralNetworksExecution_create

Function ANeuralNetworksExecution_create 

Source
pub unsafe extern "C" fn ANeuralNetworksExecution_create(
    compilation: *mut ANeuralNetworksCompilation,
    execution: *mut *mut ANeuralNetworksExecution,
) -> c_int
Expand description

Create a {@link ANeuralNetworksExecution} to apply the given compilation. This only creates the object. Computation is only performed once {@link ANeuralNetworksExecution_burstCompute}, {@link ANeuralNetworksExecution_compute}, {@link ANeuralNetworksExecution_startCompute} or {@link ANeuralNetworksExecution_startComputeWithDependencies} is invoked.

The provided compilation must outlive the execution.

See {@link ANeuralNetworksExecution} for information on multithreaded usage.

Available since API level 27.

@param compilation The {@link ANeuralNetworksCompilation} to be evaluated. @param execution The newly created object or NULL if unsuccessful.

@return ANEURALNETWORKS_NO_ERROR if successful, ANEURALNETWORKS_BAD_DATA if the compilation is invalid.