Indicate that we have finished modifying a model. Required before calling {@link ANeuralNetworksCompilation_create}.
An application is responsible to make sure 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.
See Implementation
Indicate that we have finished modifying a model. Required before calling {@link ANeuralNetworksCompilation_create}.
An application is responsible to make sure 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.