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
Fix output spec + insert clone for constant_prop_pass. (#11209)
Summary:
In case where a constant propagated node is returned by the exported program, `_validate()` fails with `SpecViolationError` with signature:
```
User output <SOME_CONSTANT_PROP_NODE> is not in the correct order or is not found in the exported program's user_output list.
```
This diff does two things:
1. Update output spec when propagated constants are output of the program.
2. Insert clone op on the constant prop tensor before sending them to output node. This avoid memory planning related errors.
Differential Revision: D75473310
0 commit comments