We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c831d11 commit 8a056dbCopy full SHA for 8a056db
requirements/pytorch/check-avail-extras.py
@@ -1,4 +1,22 @@
1
+import sys
2
+import warnings
3
+
4
if __name__ == "__main__":
5
+ if sys.platform == "win32":
6
+ # ignore warnings related to Python 3.13 and Numpy incompatibility on Windows
7
+ numpy_warnings = [
8
+ r"invalid value encountered in exp2.*",
9
+ r"invalid value encountered in nextafter.*",
10
+ r"invalid value encountered in log10.*",
11
+ ]
12
13
+ for w in numpy_warnings:
14
+ warnings.filterwarnings(
15
+ action="ignore",
16
+ message=w,
17
+ category=RuntimeWarning,
18
+ )
19
20
import hydra # noqa: F401
21
import jsonargparse # noqa: F401
22
import matplotlib # noqa: F401
0 commit comments