Commit 7139f26
Resolve numpy_utils warnings (#3025)
Summary:
Pull Request resolved: #3025
Numpy doesn't like assigning a torch.Tensor to a numpy array, so let's do that conversion explicity.
This resolves **a ton** of warnings of the form:
```
[W 250925 11:18:45 numpy_utils:91] __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments. To learn more, see the migration guide https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword
```
Reviewed By: saitcakmak, Balandat
Differential Revision: D83269102
fbshipit-source-id: c56c34319521f3cd37a8a9e12885af3b48b609b51 parent 83599a9 commit 7139f26
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments