Commit ad29b23
authored
[LLGA] Replace aten::type_as with aten::to to support a corner-case (#3030)
* Replace aten::type_as with aten::to to support a corner-case
the issue here is that an intermediate output of one of the partitions (output of add op) is to be used as an input to type_as later in the graph.
It's easier to work around this issue by replacing all aten::type_as nodes with aten::to nodes.
Another potential fix is to add LLGA End node after such intermediate outputs that are to be reused later in the graph, but that solution would require more extensive changes, since no info regarding future use of intermediate outputs would be available to IPEX/PyTorch while creating partitions at subgraph level.
* Update graph_helper.cpp
* Update test_jit_llga_fuser.py1 parent 98caa70 commit ad29b23
File tree
3 files changed
+42
-3
lines changed- csrc/cpu/jit/codegen/onednn
- tests/cpu
3 files changed
+42
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
742 | 756 | | |
743 | 757 | | |
744 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
93 | 115 | | |
94 | 116 | | |
95 | 117 | | |
| |||
246 | 268 | | |
247 | 269 | | |
248 | 270 | | |
| 271 | + | |
| 272 | + | |
249 | 273 | | |
250 | 274 | | |
251 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
510 | | - | |
511 | | - | |
| 511 | + | |
| 512 | + | |
512 | 513 | | |
513 | 514 | | |
514 | 515 | | |
| |||
0 commit comments