Module_new

Function Module_new 

Source
pub fn Module_new(
    file_path: &CxxString,
    data_map_path: &CxxString,
    load_mode: ModuleLoadMode,
    event_tracer: UniquePtr<EventTracer>,
) -> UniquePtr<Module>
Available on crate features std and 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_map_path: The path to a .ptd file, or an empty string if no data map is needed.
  • load_mode: The loading mode to use.
  • event_tracer: An EventTracer used for tracking and logging events, or null if not needed.