Try to reduce difference between sympy formula and network.

Spend a whole night. Failed;
I'll never try it anymore.
This commit is contained in:
wls2002
2024-06-13 07:07:43 +08:00
parent 69d73aab73
commit aac9f4c3fb
7 changed files with 313 additions and 87 deletions

View File

@@ -7,6 +7,10 @@ class SympySum(sp.Function):
def eval(cls, z):
return sp.Add(*z)
@classmethod
def numerical_eval(cls, z, backend=np):
return backend.sum(z)
class SympyProduct(sp.Function):
@classmethod