Spaces:
Running
Running
fix: numpy import within torch export
Browse files- pysr/export_torch.py +2 -4
pysr/export_torch.py
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
# From https://github.com/patrick-kidger/sympytorch
|
| 3 |
-
# Copied here to allow PySR-specific tweaks
|
| 4 |
-
#####
|
| 5 |
|
| 6 |
import collections as co
|
| 7 |
import functools as ft
|
| 8 |
|
|
|
|
| 9 |
import sympy
|
| 10 |
|
| 11 |
|
|
|
|
| 1 |
+
# Fork of https://github.com/patrick-kidger/sympytorch
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
import collections as co
|
| 4 |
import functools as ft
|
| 5 |
|
| 6 |
+
import numpy as np # noqa: F401
|
| 7 |
import sympy
|
| 8 |
|
| 9 |
|