bgawrych opened a new pull request #20338:
URL: https://github.com/apache/incubator-mxnet/pull/20338


   ## Description ##
   This is implementation of RFC 
https://github.com/apache/incubator-mxnet/issues/19361 and connected with issue 
https://github.com/apache/incubator-mxnet/issues/19218
   
   ```
   >>> import mxnet as mx
   >>> mx.nd.array([9e-45])
   
   [0.]
   <NDArray 1 @cpu(0)>
   >>> mx.util.set_flush_denorms(False)
   >>> mx.nd.array([9e-45])
   
   [8.e-45]
   <NDArray 1 @cpu(0)>
   >>> mx.util.set_flush_denorms(True)
   >>> mx.nd.array([9e-45])
   
   [0.]
   <NDArray 1 @cpu(0)>
   >>> exit
   ```
   
   As stated in RFC handling denormalized values is enabled by default and API 
for changing this behavior is available for the user
   
   ## Checklist ##
   ### Essentials ###
   - [X] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], 
[FEATURE], [DOC], etc)
   - [X] Changes are complete (i.e. I finished coding on this PR)
   - [] All changes have test coverage
   - [X] Code is well-documented
   


-- 
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]


Reply via email to