Spaces:
Sleeping
Sleeping
Commit
·
9c4acbd
1
Parent(s):
99fff5c
Remove unused sympy mappings
Browse files- pysr/export_torch.py +1 -6
pysr/export_torch.py
CHANGED
|
@@ -76,12 +76,7 @@ def _initialize_torch():
|
|
| 76 |
sympy.Not: torch.logical_not,
|
| 77 |
sympy.Max: torch.max,
|
| 78 |
sympy.Min: torch.min,
|
| 79 |
-
|
| 80 |
-
sympy.MatAdd: torch.add,
|
| 81 |
-
sympy.HadamardProduct: torch.mul,
|
| 82 |
-
sympy.Trace: torch.trace,
|
| 83 |
-
# Note: May raise error for integer matrices.
|
| 84 |
-
sympy.Determinant: torch.det,
|
| 85 |
}
|
| 86 |
|
| 87 |
class _Node(torch.nn.Module):
|
|
|
|
| 76 |
sympy.Not: torch.logical_not,
|
| 77 |
sympy.Max: torch.max,
|
| 78 |
sympy.Min: torch.min,
|
| 79 |
+
sympy.Mod: torch.fmod,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
}
|
| 81 |
|
| 82 |
class _Node(torch.nn.Module):
|