You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/01 04:57:49 UTC

[GitHub] roggiezhang-nv opened a new issue #8494: Autograd bug in mxnet-cu80: 0.12

roggiezhang-nv opened a new issue #8494: Autograd bug in mxnet-cu80: 0.12
URL: https://github.com/apache/incubator-mxnet/issues/8494
 
 
   Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues.
   
   If the issue is non-technical, feel free to present the information in what you believe is the best form.
   
   ## Description
   Autograd behaves not properly.
   
   ## Environment info (Required)
   Package used (Python/R/Scala/Julia): Python
   (I'm using ...)
   
   ## Error Message:
   (Paste the complete error message, including stack trace.)
   
   ## Minimum reproducible example
   (If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
   
   
   ```
   Snippet:
   
   import mxnet as mx
   
   a = mx.random.normal(shape = (3, 3, 3))
   a.attach_grad()
   
   b = 0
   with mx.autograd.record():
       b = a
   
   b.backward()
   print(a.grad)
   
   output: [[[ 0.  0.  0.]
     [ 0.  0.  0.]
     [ 0.  0.  0.]]
   
    [[ 0.  0.  0.]
     [ 0.  0.  0.]
     [ 0.  0.  0.]]
   
    [[ 0.  0.  0.]
     [ 0.  0.  0.]
     [ 0.  0.  0.]]]
   <NDArray 3x3x3 @cpu(0)>
   ```
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   1. Run the above snippet.
   2.
   
   ## What have you tried to solve it?
   
   1. Assign b = a + 1
   2.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services