szha commented on a change in pull request #13229: Add gauss err function 
operator
URL: https://github.com/apache/incubator-mxnet/pull/13229#discussion_r233187243
 
 

 ##########
 File path: tests/python/unittest/test_operator.py
 ##########
 @@ -3496,6 +3496,10 @@ def test_special_functions_using_scipy():
     mathematical_core("gammaln", lambda x: mx.sym.gammaln(x), lambda x: 
scipy_special.gammaln(x),
                      lambda x: scipy_special.psi(x), 0.5, 0.5)
 
+    # erf
+    mathematical_core("erf", lambda x: mx.sym.erf(x), lambda x: 
scipy_special.erf(x),
+                     lambda x: 2.0 / math.sqrt(math.pi) * math.exp(-(x ** 2)), 
0.5, 0.5)
 
 Review comment:
   scipy is optional dep and CI is set up to test both with and without scipy.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to