TobiasSkovgaardJepsen edited a comment on issue #10220: Check failed: 
!ndinputs.back()->is_none()
URL: 
https://github.com/apache/incubator-mxnet/issues/10220#issuecomment-454733804
 
 
   I appear to have encountered this error as well. In my case the error 
initially failed silently because I am adding two losses, but it turns out only 
one of them is used during backpropagation. Using just the other loss I get:
   ```
   MXNetError: [11:35:53] src/imperative/imperative_utils.cc:58: Check failed: 
!ndinputs.back()->is_none() node_588342 0
   
   Stack trace returned 7 entries:
   [bt] (0) 0   libmxnet.so                         0x0000000123133b90 
libmxnet.so + 15248
   [bt] (1) 1   libmxnet.so                         0x000000012313393f 
libmxnet.so + 14655
   [bt] (2) 2   libmxnet.so                         0x000000012468ee74 
MXNDListFree + 587044
   [bt] (3) 3   libmxnet.so                         0x00000001246848e3 
MXNDListFree + 544659
   [bt] (4) 4   libmxnet.so                         0x00000001245d8f2e 
MXAutogradBackwardEx + 1022
   [bt] (5) 5   _ctypes.cpython-36m-darwin.so       0x000000010fdbf427 
ffi_call_unix64 + 79
   [bt] (6) 6   ???                                 0x00007ffee1aeb630 0x0 + 
140732684744240
   ```
   
   As @lightingghost, I could fix this by using a custom Dense layer that uses 
`F.dot` in `hybrid_forward`.

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


With regards,
Apache Git Services

Reply via email to