You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/01 01:05:45 UTC

[GitHub] leezu commented on issue #7268: Autograd retain_graph=True bugs

leezu commented on issue #7268: Autograd retain_graph=True bugs
URL: https://github.com/apache/incubator-mxnet/issues/7268#issuecomment-319238610
 
 
   Thanks. Using `autograd.backward` works for me. Your first proposed solution doesn't allow for making manual changes to the grad arrays before back-propagating.
   
   What is your environment to run the sample code I provided? For me it reliably crashes mxnet 
   ```
   *** Error in `python2': corrupted double-linked list: 0x000000000441a930 ***
   ======= Backtrace: =========
   /lib64/libc.so.6(+0x7bc02)[0x7fba1ef83c02]
   /lib64/libc.so.6(+0x7c3e6)[0x7fba1ef843e6]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet4exec16FComputeExecutorD1Ev+0xf9)[0x7fb996d3e169]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv+0x132)[0x7fb995c6db42]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(+0x17e1bf2)[0x7fb996d16bf2]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(+0x1765959)[0x7fb996c9a959]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(_ZNSt17_Function_handlerIFvN5mxnet10RunContextENS0_6engine18CallbackOnCompleteEEZNS0_6Engine8PushSyncESt8functionIFvS1_EENS0_7C
   ontextERKSt6vectorIPNS2_3VarESaISC_EESG_NS0_10FnPropertyEiPKcEUlS1_S3_E_E9_M_invokeERKSt9_Any_dataS1_S3_+0x23)[0x7fb99687a173]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE+0x97)[0x7fb996ca7357]
   /home/data/lelausen/software/mxnet/python/mxnet/../../lib/libmxnet.so(_ZNSt17_Function_handlerIFvvEZZN5mxnet6engine23ThreadedEnginePerDevice13PushToExecuteEPNS2_8OprBlockEbENKUlvE_clEvEUlvE_E9_M_in
   vokeERKSt9_Any_data+0x42)[0x7fb996ca9e92]
   /usr/local/lib/gcc4/lib64/libstdc++.so.6(+0xb3150)[0x7fb9fe61c150]
   /lib64/libpthread.so.0(+0x7dc5)[0x7fba21d8adc5]
   /lib64/libc.so.6(clone+0x6d)[0x7fba1efff76d]
   ```
   
 
----------------------------------------------------------------
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