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
Summary:
Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend.
If there are still view and mutation ops after to_backend, verification should throw an error.
This diff:
1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower
2. Add verification check in to_edge
3. to_edge_transform_and_lower already has a verification check after to_backend; add config.preserve ops there.
Remove preserve_ops_view test; after to_edge, there should be no view ops.
https://www.internalfb.com/code/fbsource/[f677b61422b9927eabc36d3b15857b06186cf7ef]/fbcode/executorch/exir/program/_program.py?lines=835
Reviewed By: metascroy
Differential Revision: D78535519
0 commit comments