forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process inputs and outputs in fx interpreter (pytorch#74242)
Summary: Pull Request resolved: pytorch#74242 The inputs and outputs of the graph module might be different from the graph inputs and outputs if users are using custom codegen. In interpreter, it runs the graph instead of the generated forward function so it might not work if user provides the inputs to the graph module. To fill the gap, we call `process_inputs` and `process_outputs` inside interpreter. Test Plan: unit test: test_interpreter_with_codegen Reviewed By: jamesr66a, Chillee Differential Revision: D34898108 fbshipit-source-id: 250bd236f6c8c1268a363cf19a09521a4f64b3a9 (cherry picked from commit b33076f)
- Loading branch information
1 parent
65329f4
commit f65594f
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters