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: [email protected]

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