-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONNX][BugFix] Support If body with free variable from graph input (#…
…15602) * [ONNX][BugFix] Support If body with free variable from graph input When graph inputs are used in an inner body of If node, the original TVM ONNX frontend did not set the span properly. Because of the wrong or partial span, new relay.Var is introduced and failed to match identical Var. Firstly, there was an issue where the free variable of the inner body was updated in _node but not applied to _input. Secondly, although the free variable of the then body successfully updated to relay.Var in _node, but this was obscured by the update of _node in the else body. This commit fixes the ONNX importer and adds an ONNX import testcase for the revised code. * remove meaningless line change * fix test_graph_input_use_in_if work on llvm test
- Loading branch information
Showing
2 changed files
with
102 additions
and
2 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