anirudh2290 commented on a change in pull request #14830: [WIP] Use env var to 
enforce safe accumulation in ReduceAxesCompute
URL: https://github.com/apache/incubator-mxnet/pull/14830#discussion_r281875819
 
 

 ##########
 File path: docs/faq/env_var.md
 ##########
 @@ -280,6 +280,11 @@ When USE_PROFILER is enabled in Makefile or CMake, the 
following environments ca
   - Values: Int ```(default=4)```
   - This variable controls how many CuDNN dropout state resources to create 
for each GPU context for use in operator.
 
+* MXNET_ENFORCE_SAFE_ACCUMULATION
+  - Values: Values: 0(false) or 1(true) ```(default=0)```
+  - If this variable is set, the accumulation will enter the safe mode, 
meaning accumulation is done in a data type of higher precision than
+    the input data type, leading to more accurate results with a possible 
performance loss and backward compatibility loss.
 
 Review comment:
   I understand that there is no guarantee of getting better accuracy, but can 
it be worse and what are reasons for the same ? This is what seems to be 
happening for @nswamy 's example.

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


With regards,
Apache Git Services

Reply via email to