Function executorch_sys::torch::executor::Program_load_method

source ยท
pub unsafe extern "C" fn Program_load_method(
    this: *const Program,
    method_name: *const c_char,
    memory_manager: *mut MemoryManager,
    event_tracer: *mut EventTracer,
) -> Result<Method>
Expand description

Loads the named method and prepares it for execution.

@param[in] method_name The name of the method to load. @param[in] memory_manager The allocators to use during initialization and execution of the loaded method. @param[in] event_tracer The event tracer to use for this method run.

@returns The loaded method on success, or an error on failure.