pub unsafe extern "C" fn ANeuralNetworksModel_addOperation(
model: *mut ANeuralNetworksModel,
type_: ANeuralNetworksOperationType,
inputCount: u32,
inputs: *const u32,
outputCount: u32,
outputs: *const u32,
) -> c_intExpand description
Add an operation to a model.
@param model The model to be modified. @param type The {@link ANeuralNetworksOperationType} of the operation. @param inputCount The number of entries in the inputs array. @param inputs An array of indexes identifying each operand. @param outputCount The number of entries in the outputs array. @param outputs An array of indexes identifying each operand.
The operands specified by inputs and outputs must have been previously added by calls to {@link ANeuralNetworksModel_addOperand}.
Attempting to modify a model once {@link ANeuralNetworksModel_finish} has been called will return an error.
See {@link ANeuralNetworksModel} for information on multithreaded usage.
Available since API level 27.
@return ANEURALNETWORKS_NO_ERROR if successful.