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
Update module wrapper so that params are explicitly registered to the wrapper
Seeing issue with linear where the fqns for constants disappear.
Registering self.method_name as a submodule of wrapper means that the parameters are registered to the wrapper. cc @angelayi
```
File "/data/users/lfq/fbsource/buck-out/v2/gen/fbcode/1af94fa701700343/executorch/test/models/__export_delegated_program__/export_delegated_program#link-tree/torch/export/_trace.py", line 1980, in _export_for_training
export_artifact = export_func(
File "/data/users/lfq/fbsource/buck-out/v2/gen/fbcode/1af94fa701700343/executorch/test/models/__export_delegated_program__/export_delegated_program#link-tree/torch/export/_trace.py", line 1473, in _strict_export
_replace_param_buffer_names(param_buffer_table, export_graph_signature)
File "/data/users/lfq/fbsource/buck-out/v2/gen/fbcode/1af94fa701700343/executorch/test/models/__export_delegated_program__/export_delegated_program#link-tree/torch/export/_trace.py", line 272, in _replace_param_buffer_names
spec.target = param_buffer_table[spec.target]
KeyError: 'L__self___fn___self___linear.weight'
```
Differential Revision: [D73279618](https://our.internmc.facebook.com/intern/diff/D73279618/)
[ghstack-poisoned]
0 commit comments