pub unsafe extern "C" fn ANeuralNetworksModel_setOperandValueFromModel(
model: *mut ANeuralNetworksModel,
index: i32,
value: *const ANeuralNetworksModel,
) -> c_intExpand description
Sets an operand to a value that is a reference to another NNAPI model.
The referenced model must already have been finished by a call to {@link ANeuralNetworksModel_finish}.
The {@link ANeuralNetworksModel_relaxComputationFloat32toFloat16} setting of referenced models is overridden by that setting of the main model of a compilation.
The referenced model must outlive the model referring to it.
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 30.
@param model The model to be modified. @param index The index of the model operand we’re setting. @param value The model to be referenced.
@return ANEURALNETWORKS_NO_ERROR if successful.