You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/10/21 07:04:48 UTC

[GitHub] [incubator-mxnet] grygielski commented on issue #19361: [RFC] Denormal floating point values handling

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org