JONGGON opened a new issue #16752: Gluon hybridize is not perfect.
URL: https://github.com/apache/incubator-mxnet/issues/16752
 
 
   ## Description
   (A clear and concise description of what the bug is.)
   I am implementing yolov3.
   
   If hybridize is not active, no problem will occur.
   When active, the following error is generated:
   
   not one output from hybrid_block
   If you output multiple results,
   The backward operation doesn't seem to find the right address.
   
   ### Error Message
   Traceback (most recent call last):
     File "/home/jg/Downloads/GLUON-Detector/Yolov3_Detector/main.py", line 
154, in <module>
       plot_class_thresh=plot_class_thresh)
     File "/home/jg/Downloads/GLUON-Detector/Yolov3_Detector/train.py", line 
353, in run
       autograd.backward(total_loss)
     File 
"/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/autograd.py",
 line 267, in backward
       ctypes.c_void_p(0)))
     File 
"/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/base.py", 
line 253, in check_call
       raise MXNetError(py_str(_LIB.MXGetLastError()))
   mxnet.base.MXNetError: Error in operator node_0_backward: [01:34:41] 
src/imperative/./imperative_utils.h:753: Check failed: 
g.GetAttr<size_t>("storage_type_num_unknown_nodes") == 0U (6 vs. 0) : 
   Stack trace:
     [bt] (0) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x4b09db)
 [0x7f8c50b709db]
     [bt] (1) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x263d4d7)
 [0x7f8c52cfd4d7]
     [bt] (2) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x263e52f)
 [0x7f8c52cfe52f]
     [bt] (3) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x2618805)
 [0x7f8c52cd8805]
     [bt] (4) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x2619730)
 [0x7f8c52cd9730]
     [bt] (5) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x261d2a5)
 [0x7f8c52cdd2a5]
     [bt] (6) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x263d5ef)
 [0x7f8c52cfd5ef]
     [bt] (7) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::Imperative::Backward(std::vector<mxnet::NDArray*,
 std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, 
std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, 
std::allocator<mxnet::NDArray*> > const&, bool, bool, bool)+0x326c) 
[0x7f8c52d3361c]
     [bt] (8) 
/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(MXAutogradBackwardEx+0x573)
 [0x7f8c52c23043]
   
   ## To Reproduce
   (If you developed your own code, please provide a short script that 
reproduces the error. For existing examples, please provide link.)
   
   ### Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   1.
   2.
   
   ## What have you tried to solve it?
   
   1.
   2.
   
   ## Environment
   
   We recommend using our script for collecting the diagnositc information. Run 
the following command and paste the outputs below:
   ```
   curl --retry 10 -s 
https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | 
python
   
   # paste outputs here
   ```
   

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