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 2021/08/10 07:20:03 UTC

[GitHub] [incubator-mxnet] chinakook commented on issue #20471: Wrong gradients on Windows-GPU

chinakook commented on issue #20471:
URL: https://github.com/apache/incubator-mxnet/issues/20471#issuecomment-895792069


   I've tested with a 2.0 version modified by myself on Windows, and It's OK.
   ```python
   Input + Target gradient, CPU (OK):
   {'.Inputs.Input': 
   [[-0.33333334 -0.33333334 -0.33333334]]
   <NDArray 1x3 @cpu(0)>, '.Inputs.Target':
   [[0.33333334 0.33333334 0.33333334]]
   <NDArray 1x3 @cpu(0)>, 'seq_715248120': None}
   
   
   Input + Target gradient, GPU (OK):
   {'.Inputs.Input': 
   [[-0.33333334 -0.33333334 -0.33333334]]
   <NDArray 1x3 @gpu(0)>, '.Inputs.Target':
   [[0.33333334 0.33333334 0.33333334]]
   <NDArray 1x3 @gpu(0)>, 'seq_715248120': None}
   
   
   Target gradient only, CPU (OK):
   {'.Inputs.Input': None, '.Inputs.Target':
   [[0.33333334 0.33333334 0.33333334]]
   <NDArray 1x3 @cpu(0)>, 'seq_715248120': None}
   
   
   Target gradient only, GPU (WRONG):
   {'.Inputs.Input': None, '.Inputs.Target':
   [[0.33333334 0.33333334 0.33333334]]
   <NDArray 1x3 @gpu(0)>, 'seq_715248120': None}
   ```


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

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

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