ANeuralNetworksModel_create

Create an empty {@link ANeuralNetworksModel}.

<p>This only creates the object. Computation is performed once {@link ANeuralNetworksExecution_startCompute} is invoked.

The model should be constructed with calls to {@link ANeuralNetworksModel_addOperation} and {@link ANeuralNetworksModel_addOperand}

<p>{@link ANeuralNetworksModel_finish} should be called once the model has been fully constructed.</p>

<p>{@link ANeuralNetworksModel_free} should be called once the model is no longer needed.</p>

Available since API level 27.

@param model The {@link ANeuralNetworksModel} to be created. Set to NULL if unsuccessful.

@return ANEURALNETWORKS_NO_ERROR if successful.

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

Meta