From 051105b8631d891150fcd5ac58c6e8a62af3b62a Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Wed, 27 Mar 2024 11:01:53 -0700 Subject: [PATCH] extract the delegate segments to allow emit large models Summary: If the delegated blob is part of flatbffers, it will exceed the flatbuffers limit (4GB). extract the segments as default for qnn backend Differential Revision: D55432338 --- examples/qualcomm/scripts/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/qualcomm/scripts/utils.py b/examples/qualcomm/scripts/utils.py index 4f8e5b419c6..f8c28371619 100755 --- a/examples/qualcomm/scripts/utils.py +++ b/examples/qualcomm/scripts/utils.py @@ -226,6 +226,7 @@ def build_executorch_binary( alloc_graph_input=not shared_buffer, alloc_graph_output=not shared_buffer, ), + extract_delegate_segments=True, ) ) with open(f"{file_name}.pte", "wb") as file: