MilesCranmer commited on
Commit
fad18e8
1 Parent(s): 1914007

Fix error with swapped jax/torch

Browse files
Files changed (1) hide show
  1. pysr/sr.py +1 -1
pysr/sr.py CHANGED
@@ -1860,7 +1860,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
1860
  else:
1861
  extra_jax_mappings = {}
1862
  if extra_torch_mappings is not None:
1863
- for value in extra_jax_mappings.values():
1864
  if not callable(value):
1865
  raise ValueError(
1866
  "extra_torch_mappings must be callable functions! "
 
1860
  else:
1861
  extra_jax_mappings = {}
1862
  if extra_torch_mappings is not None:
1863
+ for value in extra_torch_mappings.values():
1864
  if not callable(value):
1865
  raise ValueError(
1866
  "extra_torch_mappings must be callable functions! "