Function Module_new

Source
pub fn Module_new(
    file_path: &str,
    load_mode: ModuleLoadMode,
    event_tracer: UniquePtr<EventTracer>,
) -> UniquePtr<Module>
Available on crate features module and std only.
Expand description

Constructs an instance by loading a program from a file with specified memory locking behavior.

ยงArguments

  • file_path: The path to the ExecuTorch program file to load.
  • load_mode: The loading mode to use.