Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create exceptions for spec.const in verify_graph_input_output (pytorc…
…h#4083) Summary: Pull Request resolved: pytorch#4083 The ASR model triggered an edge case where when we run constant_prop_pass it creates a constant in the placeholders which is then directly returned as an output of the model. When this is done the check in `verify_graph_input_output` fails because for the placeholder constant that is returned as an output we have no mem_offset (as expected). In order to handle this case we'll filter out specs from this list that are constants and then do the checks. Reviewed By: larryliu0820 Differential Revision: D59140916 fbshipit-source-id: 9a2fc99d36a1c53b06130c3bdef7f5ee2cd7c769
- Loading branch information