Module_new

Function Module_new 

Source
pub fn Module_new(
    file_path: &CxxString,
    data_files: &[&str],
    load_mode: ModuleLoadMode,
    event_tracer: UniquePtr<EventTracer>,
) -> UniquePtr<Module>
Available on crate feature module 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.
  • data_files: The path to one or more .ptd file/s.
  • load_mode: The loading mode to use.
  • event_tracer: An EventTracer used for tracking and logging events, or null if not needed.