Skip to content

Commit 1629a7b

Browse files
LoadMode::Mmap
1 parent 33b7e8d commit 1629a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/models/yolo12/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ int main(int argc, char** argv) {
5151
executorch::runtime::runtime_init();
5252
gflags::ParseCommandLineFlags(&argc, &argv, true);
5353

54-
Module yolo_module(FLAGS_model_path);
54+
// Use Mmap model to enable loading of big YOLO models in OpenVINO
55+
Module yolo_module(FLAGS_model_path, Module::LoadMode::Mmap);
5556

5657
auto error = yolo_module.load();
5758

0 commit comments

Comments
 (0)