pub unsafe extern "C" fn ANeuralNetworksCompilation_finish(
compilation: *mut ANeuralNetworksCompilation,
) -> c_intExpand description
Indicate that we have finished modifying a compilation. Required before calling {@link ANeuralNetworksBurst_create} or {@link ANeuralNetworksExecution_create}.
An application must ensure that no other thread uses the compilation at the same time.
This function must only be called once for a given compilation.
If {@link ANeuralNetworksCompilation_setTimeout} was called on this compilation, and the compilation is not able to be finished before the timeout duration is exceeded, then compilation may be aborted, in which case {@link ANEURALNETWORKS_MISSED_DEADLINE_*} will be returned.
See {@link ANeuralNetworksCompilation} for information on multithreaded usage.
Available since API level 27.
@param compilation The compilation to be finished.
@return ANEURALNETWORKS_NO_ERROR if successful.