Commit 349946c
authored
Fix attribute handling in autocast (#2256)
In #2091, the call to helper
was replaced with onnx ir attribute convertion. This was not properly
handling when the attribute is a subgraph and when it uses values from
the parent scope, which the ir doesn't have access to. The IR thus
raises warnings of it not being able to find those values.
This PR reverts the change.1 parent 510fc28 commit 349946c
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
| |||
0 commit comments