-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2925666
commit 1d42c0d
Showing
23 changed files
with
1,064 additions
and
27 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
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
38 changes: 38 additions & 0 deletions
38
tests/torch/data/fx/reference_graphs/transformed_graphs/constant_update_ref.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,38 @@ | ||
strict digraph { | ||
"0 arg0_1" [id=0, type=input]; | ||
"1 _param_constant0" [id=1, type=get_attr]; | ||
"2 _param_constant1" [id=2, type=get_attr]; | ||
"3 conv2d" [id=3, type=conv2d]; | ||
"4 _param_constant2" [id=4, type=get_attr]; | ||
"5 _param_constant3" [id=5, type=get_attr]; | ||
"6 conv2d_1" [id=6, type=conv2d]; | ||
"7 add__updated_constant0" [id=7, type=get_attr]; | ||
"8 add_" [id=8, type=add_]; | ||
"9 _tensor_constant0_1" [id=9, type=get_attr]; | ||
"10 add__1" [id=10, type=add_]; | ||
"11 add" [id=11, type=add]; | ||
"12 _param_constant4" [id=12, type=get_attr]; | ||
"13 _param_constant5" [id=13, type=get_attr]; | ||
"14 conv2d_2" [id=14, type=conv2d]; | ||
"15 _tensor_constant0_2" [id=15, type=get_attr]; | ||
"16 add_1" [id=16, type=add]; | ||
"17 output" [id=17, type=output]; | ||
"0 arg0_1" -> "3 conv2d" [label="(1, 3, 3, 3)", style=solid]; | ||
"1 _param_constant0" -> "3 conv2d" [label="(3, 3, 1, 1)", style=solid]; | ||
"2 _param_constant1" -> "3 conv2d" [label="(3,)", style=solid]; | ||
"3 conv2d" -> "6 conv2d_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"3 conv2d" -> "8 add_" [label="(1, 3, 3, 3)", style=solid]; | ||
"4 _param_constant2" -> "6 conv2d_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"5 _param_constant3" -> "6 conv2d_1" [label="(3,)", style=solid]; | ||
"6 conv2d_1" -> "10 add__1" [label="(1, 3, 3, 3)", style=solid]; | ||
"7 add__updated_constant0" -> "8 add_" [label="(1,)", style=solid]; | ||
"8 add_" -> "11 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"9 _tensor_constant0_1" -> "10 add__1" [label="(1,)", style=solid]; | ||
"10 add__1" -> "11 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"11 add" -> "14 conv2d_2" [label="(1, 3, 3, 3)", style=solid]; | ||
"12 _param_constant4" -> "14 conv2d_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"13 _param_constant5" -> "14 conv2d_2" [label="(3,)", style=solid]; | ||
"14 conv2d_2" -> "16 add_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"15 _tensor_constant0_2" -> "16 add_1" [label="(1,)", style=solid]; | ||
"16 add_1" -> "17 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
46 changes: 46 additions & 0 deletions
46
tests/torch/data/fx/reference_graphs/transformed_graphs/model_insertion_leaf_ref.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,46 @@ | ||
strict digraph { | ||
"0 arg0_1" [id=0, type=input]; | ||
"1 _param_constant0" [id=1, type=get_attr]; | ||
"2 _param_constant1" [id=2, type=get_attr]; | ||
"3 TEST_MODULE_0" [id=3, type=call_module]; | ||
"4 TEST_MODULE_1" [id=4, type=call_module]; | ||
"5 conv2d" [id=5, type=conv2d]; | ||
"6 TEST_MODULE_3" [id=6, type=call_module]; | ||
"7 _param_constant2" [id=7, type=get_attr]; | ||
"8 _param_constant3" [id=8, type=get_attr]; | ||
"9 TEST_MODULE_2" [id=9, type=call_module]; | ||
"10 conv2d_1" [id=10, type=conv2d]; | ||
"11 _tensor_constant0" [id=11, type=get_attr]; | ||
"12 add_" [id=12, type=add_]; | ||
"13 _tensor_constant0_1" [id=13, type=get_attr]; | ||
"14 add__1" [id=14, type=add_]; | ||
"15 add" [id=15, type=add]; | ||
"16 _param_constant4" [id=16, type=get_attr]; | ||
"17 _param_constant5" [id=17, type=get_attr]; | ||
"18 conv2d_2" [id=18, type=conv2d]; | ||
"19 _tensor_constant0_2" [id=19, type=get_attr]; | ||
"20 add_1" [id=20, type=add]; | ||
"21 output" [id=21, type=output]; | ||
"0 arg0_1" -> "3 TEST_MODULE_0" [label="(1, 3, 3, 3)", style=solid]; | ||
"0 arg0_1" -> "5 conv2d" [label="(1, 3, 3, 3)", style=solid]; | ||
"1 _param_constant0" -> "4 TEST_MODULE_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"1 _param_constant0" -> "5 conv2d" [label="(3, 3, 1, 1)", style=solid]; | ||
"2 _param_constant1" -> "5 conv2d" [label="(3,)", style=solid]; | ||
"5 conv2d" -> "6 TEST_MODULE_3" [label="(1, 3, 3, 3)", style=solid]; | ||
"5 conv2d" -> "10 conv2d_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"5 conv2d" -> "12 add_" [label="(1, 3, 3, 3)", style=solid]; | ||
"7 _param_constant2" -> "9 TEST_MODULE_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"7 _param_constant2" -> "10 conv2d_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"8 _param_constant3" -> "10 conv2d_1" [label="(3,)", style=solid]; | ||
"10 conv2d_1" -> "14 add__1" [label="(1, 3, 3, 3)", style=solid]; | ||
"11 _tensor_constant0" -> "12 add_" [label="(1,)", style=solid]; | ||
"12 add_" -> "15 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"13 _tensor_constant0_1" -> "14 add__1" [label="(1,)", style=solid]; | ||
"14 add__1" -> "15 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"15 add" -> "18 conv2d_2" [label="(1, 3, 3, 3)", style=solid]; | ||
"16 _param_constant4" -> "18 conv2d_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"17 _param_constant5" -> "18 conv2d_2" [label="(3,)", style=solid]; | ||
"18 conv2d_2" -> "20 add_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"19 _tensor_constant0_2" -> "20 add_1" [label="(1,)", style=solid]; | ||
"20 add_1" -> "21 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
46 changes: 46 additions & 0 deletions
46
tests/torch/data/fx/reference_graphs/transformed_graphs/model_insertion_ref.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,46 @@ | ||
strict digraph { | ||
"0 arg0_1" [id=0, type=input]; | ||
"1 _param_constant0" [id=1, type=get_attr]; | ||
"2 _param_constant1" [id=2, type=get_attr]; | ||
"3 TEST_MODULE_0" [id=3, type=call_module]; | ||
"4 TEST_MODULE_1" [id=4, type=call_module]; | ||
"5 conv2d" [id=5, type=conv2d]; | ||
"6 TEST_MODULE_3" [id=6, type=call_module]; | ||
"7 _param_constant2" [id=7, type=get_attr]; | ||
"8 _param_constant3" [id=8, type=get_attr]; | ||
"9 TEST_MODULE_2" [id=9, type=call_module]; | ||
"10 conv2d_1" [id=10, type=conv2d]; | ||
"11 _tensor_constant0" [id=11, type=get_attr]; | ||
"12 add_" [id=12, type=add_]; | ||
"13 _tensor_constant0_1" [id=13, type=get_attr]; | ||
"14 add__1" [id=14, type=add_]; | ||
"15 add" [id=15, type=add]; | ||
"16 _param_constant4" [id=16, type=get_attr]; | ||
"17 _param_constant5" [id=17, type=get_attr]; | ||
"18 conv2d_2" [id=18, type=conv2d]; | ||
"19 _tensor_constant0_2" [id=19, type=get_attr]; | ||
"20 add_1" [id=20, type=add]; | ||
"21 output" [id=21, type=output]; | ||
"0 arg0_1" -> "3 TEST_MODULE_0" [label="(1, 3, 3, 3)", style=solid]; | ||
"1 _param_constant0" -> "4 TEST_MODULE_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"2 _param_constant1" -> "5 conv2d" [label="(3,)", style=solid]; | ||
"3 TEST_MODULE_0" -> "5 conv2d" [label="(1, 3, 3, 3)", style=solid]; | ||
"4 TEST_MODULE_1" -> "5 conv2d" [label="(3, 3, 1, 1)", style=solid]; | ||
"5 conv2d" -> "6 TEST_MODULE_3" [label="(1, 3, 3, 3)", style=solid]; | ||
"6 TEST_MODULE_3" -> "10 conv2d_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"6 TEST_MODULE_3" -> "12 add_" [label="(1, 3, 3, 3)", style=solid]; | ||
"7 _param_constant2" -> "9 TEST_MODULE_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"8 _param_constant3" -> "10 conv2d_1" [label="(3,)", style=solid]; | ||
"9 TEST_MODULE_2" -> "10 conv2d_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"10 conv2d_1" -> "14 add__1" [label="(1, 3, 3, 3)", style=solid]; | ||
"11 _tensor_constant0" -> "12 add_" [label="(1,)", style=solid]; | ||
"12 add_" -> "15 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"13 _tensor_constant0_1" -> "14 add__1" [label="(1,)", style=solid]; | ||
"14 add__1" -> "15 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"15 add" -> "18 conv2d_2" [label="(1, 3, 3, 3)", style=solid]; | ||
"16 _param_constant4" -> "18 conv2d_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"17 _param_constant5" -> "18 conv2d_2" [label="(3,)", style=solid]; | ||
"18 conv2d_2" -> "20 add_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"19 _tensor_constant0_2" -> "20 add_1" [label="(1,)", style=solid]; | ||
"20 add_1" -> "21 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
32 changes: 32 additions & 0 deletions
32
tests/torch/data/fx/reference_graphs/transformed_graphs/node_removal_ref.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,32 @@ | ||
strict digraph { | ||
"0 arg0_1" [id=0, type=input]; | ||
"1 _param_constant2" [id=1, type=get_attr]; | ||
"2 _param_constant3" [id=2, type=get_attr]; | ||
"3 conv2d_1" [id=3, type=conv2d]; | ||
"4 _tensor_constant0" [id=4, type=get_attr]; | ||
"5 add_" [id=5, type=add_]; | ||
"6 _tensor_constant0_1" [id=6, type=get_attr]; | ||
"7 add__1" [id=7, type=add_]; | ||
"8 add" [id=8, type=add]; | ||
"9 _param_constant4" [id=9, type=get_attr]; | ||
"10 _param_constant5" [id=10, type=get_attr]; | ||
"11 conv2d_2" [id=11, type=conv2d]; | ||
"12 _tensor_constant0_2" [id=12, type=get_attr]; | ||
"13 add_1" [id=13, type=add]; | ||
"14 output" [id=14, type=output]; | ||
"0 arg0_1" -> "3 conv2d_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"0 arg0_1" -> "5 add_" [label="(1, 3, 3, 3)", style=solid]; | ||
"1 _param_constant2" -> "3 conv2d_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"2 _param_constant3" -> "3 conv2d_1" [label="(3,)", style=solid]; | ||
"3 conv2d_1" -> "7 add__1" [label="(1, 3, 3, 3)", style=solid]; | ||
"4 _tensor_constant0" -> "5 add_" [label="(1,)", style=solid]; | ||
"5 add_" -> "8 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"6 _tensor_constant0_1" -> "7 add__1" [label="(1,)", style=solid]; | ||
"7 add__1" -> "8 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"8 add" -> "11 conv2d_2" [label="(1, 3, 3, 3)", style=solid]; | ||
"9 _param_constant4" -> "11 conv2d_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"10 _param_constant5" -> "11 conv2d_2" [label="(3,)", style=solid]; | ||
"11 conv2d_2" -> "13 add_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"12 _tensor_constant0_2" -> "13 add_1" [label="(1,)", style=solid]; | ||
"13 add_1" -> "14 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
41 changes: 41 additions & 0 deletions
41
...s/torch/data/fx/reference_graphs/transformed_graphs/output_insertion_conv2d_1_5_1_ref.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,41 @@ | ||
strict digraph { | ||
"0 arg0_1" [id=0, type=input]; | ||
"1 _param_constant0" [id=1, type=get_attr]; | ||
"2 _param_constant1" [id=2, type=get_attr]; | ||
"3 conv2d" [id=3, type=conv2d]; | ||
"4 _param_constant2" [id=4, type=get_attr]; | ||
"5 _param_constant2_cloned" [id=5, type=clone]; | ||
"6 _param_constant3" [id=6, type=get_attr]; | ||
"7 conv2d_1" [id=7, type=conv2d]; | ||
"8 _tensor_constant0" [id=8, type=get_attr]; | ||
"9 add_" [id=9, type=add_]; | ||
"10 _tensor_constant0_1" [id=10, type=get_attr]; | ||
"11 add__1" [id=11, type=add_]; | ||
"12 add" [id=12, type=add]; | ||
"13 _param_constant4" [id=13, type=get_attr]; | ||
"14 _param_constant5" [id=14, type=get_attr]; | ||
"15 conv2d_2" [id=15, type=conv2d]; | ||
"16 _tensor_constant0_2" [id=16, type=get_attr]; | ||
"17 add_1" [id=17, type=add]; | ||
"18 output" [id=18, type=output]; | ||
"0 arg0_1" -> "3 conv2d" [label="(1, 3, 3, 3)", style=solid]; | ||
"1 _param_constant0" -> "3 conv2d" [label="(3, 3, 1, 1)", style=solid]; | ||
"2 _param_constant1" -> "3 conv2d" [label="(3,)", style=solid]; | ||
"3 conv2d" -> "7 conv2d_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"3 conv2d" -> "9 add_" [label="(1, 3, 3, 3)", style=solid]; | ||
"4 _param_constant2" -> "5 _param_constant2_cloned" [label="(3, 3, 1, 1)", style=solid]; | ||
"4 _param_constant2" -> "7 conv2d_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"5 _param_constant2_cloned" -> "18 output" [label=None, style=solid]; | ||
"6 _param_constant3" -> "7 conv2d_1" [label="(3,)", style=solid]; | ||
"7 conv2d_1" -> "11 add__1" [label="(1, 3, 3, 3)", style=solid]; | ||
"8 _tensor_constant0" -> "9 add_" [label="(1,)", style=solid]; | ||
"9 add_" -> "12 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"10 _tensor_constant0_1" -> "11 add__1" [label="(1,)", style=solid]; | ||
"11 add__1" -> "12 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"12 add" -> "15 conv2d_2" [label="(1, 3, 3, 3)", style=solid]; | ||
"13 _param_constant4" -> "15 conv2d_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"14 _param_constant5" -> "15 conv2d_2" [label="(3,)", style=solid]; | ||
"15 conv2d_2" -> "17 add_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"16 _tensor_constant0_2" -> "17 add_1" [label="(1,)", style=solid]; | ||
"17 add_1" -> "18 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
41 changes: 41 additions & 0 deletions
41
tests/torch/data/fx/reference_graphs/transformed_graphs/output_insertion_conv2d_6_0_ref.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,41 @@ | ||
strict digraph { | ||
"0 arg0_1" [id=0, type=input]; | ||
"1 arg0_1_cloned" [id=1, type=clone]; | ||
"2 _param_constant0" [id=2, type=get_attr]; | ||
"3 _param_constant1" [id=3, type=get_attr]; | ||
"4 conv2d" [id=4, type=conv2d]; | ||
"5 _param_constant2" [id=5, type=get_attr]; | ||
"6 _param_constant3" [id=6, type=get_attr]; | ||
"7 conv2d_1" [id=7, type=conv2d]; | ||
"8 _tensor_constant0" [id=8, type=get_attr]; | ||
"9 add_" [id=9, type=add_]; | ||
"10 _tensor_constant0_1" [id=10, type=get_attr]; | ||
"11 add__1" [id=11, type=add_]; | ||
"12 add" [id=12, type=add]; | ||
"13 _param_constant4" [id=13, type=get_attr]; | ||
"14 _param_constant5" [id=14, type=get_attr]; | ||
"15 conv2d_2" [id=15, type=conv2d]; | ||
"16 _tensor_constant0_2" [id=16, type=get_attr]; | ||
"17 add_1" [id=17, type=add]; | ||
"18 output" [id=18, type=output]; | ||
"0 arg0_1" -> "1 arg0_1_cloned" [label="(1, 3, 3, 3)", style=solid]; | ||
"0 arg0_1" -> "4 conv2d" [label="(1, 3, 3, 3)", style=solid]; | ||
"1 arg0_1_cloned" -> "18 output" [label=None, style=solid]; | ||
"2 _param_constant0" -> "4 conv2d" [label="(3, 3, 1, 1)", style=solid]; | ||
"3 _param_constant1" -> "4 conv2d" [label="(3,)", style=solid]; | ||
"4 conv2d" -> "7 conv2d_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"4 conv2d" -> "9 add_" [label="(1, 3, 3, 3)", style=solid]; | ||
"5 _param_constant2" -> "7 conv2d_1" [label="(3, 3, 1, 1)", style=solid]; | ||
"6 _param_constant3" -> "7 conv2d_1" [label="(3,)", style=solid]; | ||
"7 conv2d_1" -> "11 add__1" [label="(1, 3, 3, 3)", style=solid]; | ||
"8 _tensor_constant0" -> "9 add_" [label="(1,)", style=solid]; | ||
"9 add_" -> "12 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"10 _tensor_constant0_1" -> "11 add__1" [label="(1,)", style=solid]; | ||
"11 add__1" -> "12 add" [label="(1, 3, 3, 3)", style=solid]; | ||
"12 add" -> "15 conv2d_2" [label="(1, 3, 3, 3)", style=solid]; | ||
"13 _param_constant4" -> "15 conv2d_2" [label="(3, 3, 1, 1)", style=solid]; | ||
"14 _param_constant5" -> "15 conv2d_2" [label="(3,)", style=solid]; | ||
"15 conv2d_2" -> "17 add_1" [label="(1, 3, 3, 3)", style=solid]; | ||
"16 _tensor_constant0_2" -> "17 add_1" [label="(1,)", style=solid]; | ||
"17 add_1" -> "18 output" [label="(1, 3, 3, 3)", style=solid]; | ||
} |
Oops, something went wrong.