larroy commented on issue #11259: [MXNET-184] Fix flaky test 
test_operator.test_binary_op due to numerical errors
URL: https://github.com/apache/incubator-mxnet/pull/11259#issuecomment-396982166
 
 
   There must be a float32 conversion somewhere in the engine:
   
   Isolated the failing case:
   
   In [41]: a=0.2823993815399286
   
   In [42]: b=0.2823993942863873
   
   In [43]: from ctypes import *
   
   In [44]: c_float(a)%c_float(b)
   
   In [45]: c_float(a).value % c_float(b).value
   Out[45]: 0.0
   
   In [46]: 0.2823993815399286 % 0.2823993942863873
   Out[46]: 0.2823993815399286
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to