Commit c406bf2
error instead of crashing on attempt to subclass typed tensors (#20283)
Summary:
#20052
typed tensors (e.g. torch.FloatTensor) can't be subclassed. Was causing
crashes and other errors.
Pull Request resolved: #20283
Differential Revision: D15278138
Pulled By: nairbv
fbshipit-source-id: 8493eac4d34dfb76b054362bf0acec02146cd0e21 parent 1e35ef0 commit c406bf2
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11336 | 11336 | | |
11337 | 11337 | | |
11338 | 11338 | | |
| 11339 | + | |
| 11340 | + | |
| 11341 | + | |
| 11342 | + | |
| 11343 | + | |
| 11344 | + | |
| 11345 | + | |
| 11346 | + | |
| 11347 | + | |
| 11348 | + | |
| 11349 | + | |
| 11350 | + | |
| 11351 | + | |
11339 | 11352 | | |
11340 | 11353 | | |
11341 | 11354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
0 commit comments