Function executorch_sys::torch::executor::Method_experimental_reset_execution
source ยท pub unsafe extern "C" fn Method_experimental_reset_execution(
this: *mut Method,
) -> ErrorExpand description
Resets execution state to the start of the Method. For use with the
experimental_step() API.
NOTE: Prototype API; subject to change.
@retval Error:Ok on success @retval Error::InvalidState if called before step-based execution reached the end of the Method. This means it is not possible to recover a Method that failed mid-execution.