Create a {@link ANeuralNetworksCompilation} to compile the given model.
<p>This only creates the object. Compilation is only performed once {@link ANeuralNetworksCompilation_finish} is invoked.</p>
<p>{@link ANeuralNetworksCompilation_finish} should be called once all desired properties have been set on the compilation.</p>
<p>{@link ANeuralNetworksModel_free} should be called once the compilation is no longer needed.</p>
<p>The provided model must outlive the compilation.</p>
The model must already have been finished by a call to {@link ANeuralNetworksModel_finish}.
See {@link ANeuralNetworksCompilation} for information on multithreaded usage.
Available since API level 27.
@param model The {@link ANeuralNetworksModel} to be compiled. @param compilation The newly created object or NULL if unsuccessful.
@return ANEURALNETWORKS_NO_ERROR if successful, ANEURALNETWORKS_BAD_DATA if the model is invalid.
See Implementation
Create a {@link ANeuralNetworksCompilation} to compile the given model.
<p>This only creates the object. Compilation is only performed once {@link ANeuralNetworksCompilation_finish} is invoked.</p>
<p>{@link ANeuralNetworksCompilation_finish} should be called once all desired properties have been set on the compilation.</p>
<p>{@link ANeuralNetworksModel_free} should be called once the compilation is no longer needed.</p>
<p>The provided model must outlive the compilation.</p>
The model must already have been finished by a call to {@link ANeuralNetworksModel_finish}.
See {@link ANeuralNetworksCompilation} for information on multithreaded usage.
Available since API level 27.
@param model The {@link ANeuralNetworksModel} to be compiled. @param compilation The newly created object or NULL if unsuccessful.
@return ANEURALNETWORKS_NO_ERROR if successful, ANEURALNETWORKS_BAD_DATA if the model is invalid.