Commit 5ce9c59
authored
Wrong shape if the tensor is mixed precision (#100)
If the shape of dil tensor is not as same as its tensor wrapper, then the tensor wrapper will be incorrect because the reorder syncs the shape of dil tensor to its tensor wrapper. In fact, we should only take the dil tensor as the buffer, we should not never sync the meta info of dil tensor to its tensor wrapper. It is JUST a buffer.1 parent 4f7b02b commit 5ce9c59
File tree
2 files changed
+24
-1
lines changed- tests/cpu
- torch_ipex/csrc
2 files changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1085 | 1108 | | |
1086 | 1109 | | |
1087 | 1110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments