ANeuralNetworksExecution_create

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

<p>The provided compilation must outlive the execution.</p>

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.

version(Android)
extern (C) @system nothrow @nogc
int
ANeuralNetworksExecution_create

Meta