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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user