grygielski commented on issue #19361:
URL: 
https://github.com/apache/incubator-mxnet/issues/19361#issuecomment-713356876


   @xidulu Thanks a lot for your user experience comment. In this case, using 
`np.finfo('float32').eps` returns the machine epsilon which is far from 
denormal number. Therefore, these 2 flags shouldn't affect your clipping. To 
create denormal number from machine epsilon you have to take it to ~6th power.
   ```Python
   import daz
   daz.set_ftz()
   daz.set_daz()
   
   np.power(np.finfo('float32').eps, 5, dtype=np.float32)
   >>> 2.4074124e-35
   
   np.power(np.finfo('float32').eps, 6, dtype=np.float32)
   >>> 0.0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to