MilesCranmer commited on
Commit
9068541
1 Parent(s): 3d7c303

Add docstring for sympy2torch

Browse files
Files changed (1) hide show
  1. pysr/export_torch.py +5 -2
pysr/export_torch.py CHANGED
@@ -185,8 +185,11 @@ def _initialize_torch():
185
 
186
 
187
  def sympy2torch(expression, symbols_in):
188
- global torch
189
- global _Node
 
 
 
190
  global SingleSymPyModule
191
 
192
  _initialize_torch()
 
185
 
186
 
187
  def sympy2torch(expression, symbols_in):
188
+ """Returns a module for a given sympy expression with trainable parameters;
189
+
190
+ This function will assume the input to the module is a matrix X, where
191
+ each column corresponds to each symbol you pass in `symbols_in`.
192
+ """
193
  global SingleSymPyModule
194
 
195
  _initialize_torch()