You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take external NDM if it exists, otherwise internal.
Note: by default, xnnpack uses the named_data_map. Constants are not stored with the delegated blob anymore.
Differential Revision: [D73679710](https://our.internmc.facebook.com/intern/diff/D73679710/)
[ghstack-poisoned]
Copy file name to clipboardExpand all lines: runtime/executor/method.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -810,7 +810,7 @@ Error Method::init(
810
810
NotSupported,
811
811
"NamedDataMap merge not supported; both pte_data_map and named_data_map are non-empty. If you see this error please file an issue at https://github.com/pytorch/executorch/issues");
812
812
813
-
if (named_data_map && named_data_map->get_num_keys().get() >0) {
813
+
if (!named_data_map || named_data_map->get_num_keys().get() ==0) {
0 commit comments