-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix constant folding in CPU constant case
- Loading branch information
1 parent
6ac12b2
commit 92ebbf2
Showing
4 changed files
with
65 additions
and
0 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
20 changes: 20 additions & 0 deletions
20
tests/torch/data/reference_graphs/fx/transformed/folded_scalar_clone_model.dot
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
strict digraph { | ||
"0 linear_weight" [id=0, type=get_attr]; | ||
"1 linear_bias" [id=1, type=get_attr]; | ||
"2 lifted_tensor_0" [id=2, type=get_attr]; | ||
"3 x" [id=3, type=input]; | ||
"4 lift_fresh_copy" [id=4, type=lift_fresh_copy]; | ||
"5 detach_" [id=5, type=detach_]; | ||
"6 _frozen_param0" [id=6, type=get_attr]; | ||
"7 linear" [id=7, type=linear]; | ||
"8 add" [id=8, type=add]; | ||
"9 output" [id=9, type=output]; | ||
"0 linear_weight" -> "7 linear" [label="(3, 3)", style=solid]; | ||
"1 linear_bias" -> "7 linear" [label="(3,)", style=solid]; | ||
"2 lifted_tensor_0" -> "4 lift_fresh_copy" [label="()", style=solid]; | ||
"3 x" -> "7 linear" [label="(1, 3, 3, 3)", style=solid]; | ||
"4 lift_fresh_copy" -> "5 detach_" [label="()", style=solid]; | ||
"6 _frozen_param0" -> "8 add" [label="()", style=solid]; | ||
"7 linear" -> "8 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"8 add" -> "9 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
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