Commit a836b64
Support Half/BFloat16 in op_allclose
Pull Request resolved: pytorch#7766
We incorrectly required these types to be bitwise-identical rather than close.
(I had to develop this internally because the op_allclose_test doesn't run in OSS.)
Differential Revision: [D68366831](https://our.internmc.facebook.com/intern/diff/D68366831/)
ghstack-source-id: 262600586
Co-authored-by: Scott Wolchok <[email protected]>1 parent 3f8c4d8 commit a836b64
File tree
2 files changed
+88
-220
lines changed- kernels/portable
- cpu
- test
2 files changed
+88
-220
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
0 commit comments