pub unsafe extern "C" fn ANeuralNetworksExecution_burstCompute(
execution: *mut ANeuralNetworksExecution,
burst: *mut ANeuralNetworksBurst,
) -> c_intExpand description
Schedule synchronous evaluation of the execution on a burst object.
Schedules synchronous evaluation of the execution. Returns once the execution has completed and the outputs are ready to be consumed.
If {@link ANeuralNetworksExecution_setTimeout} was called on the execution, and the execution is not able to complete before the timeout duration is exceeded, then execution may be aborted, in which case {@link ANEURALNETWORKS_MISSED_DEADLINE_*} will be returned.
If the execution contains a {@link ANEURALNETWORKS_WHILE} operation, and the condition model does not output false within the loop timeout duration, then execution will be aborted and {@link ANEURALNETWORKS_MISSED_DEADLINE_*} will be returned. If the device has a feature level reported by {@link ANeuralNetworksDevice_getFeatureLevel} that is lower than 30, then the timeout duration hint will be ignored.
There must be at most one {@link ANeuralNetworksExecution} processing at any given time for any given burst object. Any {@link ANeuralNetworksExecution} launched before the previous has finished will result in ANEURALNETWORKS_BAD_STATE.
See {@link ANeuralNetworksExecution_compute} for synchronous execution. See {@link ANeuralNetworksExecution_startCompute} for regular asynchronous execution. See {@link ANeuralNetworksExecution_startComputeWithDependencies} for asynchronous execution with dependencies.
Available since API level 29.
@param burst The burst object to execute on. @param execution The execution to be scheduled and executed. The execution must be created from the same {@link ANeuralNetworksCompilation} as the burst object.
@return ANEURALNETWORKS_NO_ERROR if the execution completed normally.