pub fn Module_new(
file_path: &str,
data_map_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.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.