pub unsafe extern "C" fn ANeuralNetworksModel_finish(
model: *mut ANeuralNetworksModel,
) -> c_intExpand description
Indicate that we have finished modifying a model. Required before calling {@link ANeuralNetworksCompilation_create} and {@link ANeuralNetworksCompilation_createForDevices}.
An application must ensure that no other thread uses the model at the same time.
This function must only be called once for a given model.
See {@link ANeuralNetworksModel} for information on multithreaded usage.
Available since API level 27.
@param model The model to be finished.
@return ANEURALNETWORKS_NO_ERROR if successful.