dmadeka opened a new issue #8048: Issue in backprop for the transpose of a 
transpose
URL: https://github.com/apache/incubator-mxnet/issues/8048
 
 
   For bugs or installation issues, please provide the following information.
   The more information you provide, the more likely people will be able to 
help you.
   
   ## Environment info
   Operating System: Mac OSX 10.12.4 (Sierra)
   Python
   MXNet version: 0.11.1
   Python version and distribution: conda python 3
   
   ## Error Message:
   Please paste the full error message, including stack trace.
   
   The following function produces an error on backprop:
   
   ``` python
   def ttake( x, i ):
       """ Take from axis 1 instead of 0.
       """
       return mx.sym.flatten( mx.sym.transpose( mx.sym.take( 
mx.sym.transpose(x) , i ) ) )
   
   ```
   
   ```
   [17:53:42] 
/Users/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308:
 [17:53:42] src/operator/tensor/./matrix_op-inl.h:281: Check failed: req[0] == 
kWriteTo (3 vs. 1) Transpose does not support inplace
   
   Stack trace returned 10 entries:
   [bt] (0) 0   libmxnet.so                         0x00000001077c51f8 
_ZN4dmlc15LogMessageFatalD2Ev + 40
   [bt] (1) 1   libmxnet.so                         0x000000010849c4d7 
_ZN5mxnet2op9TransposeIN7mshadow3cpuEEEvRKN4nnvm9NodeAttrsERKNS_9OpContextERKNSt3__16vectorINS_5TBlobENSB_9allocatorISD_EEEERKNSC_INS_9OpReqTypeENSE_ISJ_EEEESI_
 + 567
   [bt] (2) 2   libmxnet.so                         0x00000001085c5db7 
_ZN5mxnet4exec16FComputeExecutor3RunENS_10RunContextEb + 103
   [bt] (3) 3   libmxnet.so                         0x00000001085e6025 
_ZNSt3__110__function6__funcIZN5mxnet4exec13GraphExecutor18CreateCachedSegOprEmmE3$_6NS_9allocatorIS5_EEFvNS2_10RunContextENS2_6engine18CallbackOnCompleteEEEclEOS8_OSA_
 + 117
   [bt] (4) 4   libmxnet.so                         0x00000001085bc032 
_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE
 + 386
   [bt] (5) 5   libmxnet.so                         0x00000001085befc1 
_ZNSt3__110__function6__funcIZZN5mxnet6engine23ThreadedEnginePerDevice13PushToExecuteEPNS3_8OprBlockEbENKUlvE_clEvEUlvE_NS_9allocatorIS8_EEFvvEEclEv
 + 65
   [bt] (6) 6   libmxnet.so                         0x00000001085bc728 
_ZNSt3__114__thread_proxyINS_5tupleIJNS_8functionIFvvEEEEEEEEPvS6_ + 104
   [bt] (7) 7   libsystem_pthread.dylib             0x00007fff8ccfa9af 
_pthread_body + 180
   [bt] (8) 8   libsystem_pthread.dylib             0x00007fff8ccfa8fb 
_pthread_body + 0
   [bt] (9) 9   libsystem_pthread.dylib             0x00007fff8ccfa101 
thread_start + 13
   
   [17:53:42] 
/Users/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308:
 [17:53:42] src/engine/./threaded_engine.h:347: [17:53:42] 
src/operator/tensor/./matrix_op-inl.h:281: Check failed: req[0] == kWriteTo (3 
vs. 1) Transpose does not support inplace
   
   Stack trace returned 10 entries:
   [bt] (0) 0   libmxnet.so                         0x00000001077c51f8 
_ZN4dmlc15LogMessageFatalD2Ev + 40
   [bt] (1) 1   libmxnet.so                         0x000000010849c4d7 
_ZN5mxnet2op9TransposeIN7mshadow3cpuEEEvRKN4nnvm9NodeAttrsERKNS_9OpContextERKNSt3__16vectorINS_5TBlobENSB_9allocatorISD_EEEERKNSC_INS_9OpReqTypeENSE_ISJ_EEEESI_
 + 567
   [bt] (2) 2   libmxnet.so                         0x00000001085c5db7 
_ZN5mxnet4exec16FComputeExecutor3RunENS_10RunContextEb + 103
   [bt] (3) 3   libmxnet.so                         0x00000001085e6025 
_ZNSt3__110__function6__funcIZN5mxnet4exec13GraphExecutor18CreateCachedSegOprEmmE3$_6NS_9allocatorIS5_EEFvNS2_10RunContextENS2_6engine18CallbackOnCompleteEEEclEOS8_OSA_
 + 117
   [bt] (4) 4   libmxnet.so                         0x00000001085bc032 
_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE
 + 386
   [bt] (5) 5   libmxnet.so                         0x00000001085befc1 
_ZNSt3__110__function6__funcIZZN5mxnet6engine23ThreadedEnginePerDevice13PushToExecuteEPNS3_8OprBlockEbENKUlvE_clEvEUlvE_NS_9allocatorIS8_EEFvvEEclEv
 + 65
   [bt] (6) 6   libmxnet.so                         0x00000001085bc728 
_ZNSt3__114__thread_proxyINS_5tupleIJNS_8functionIFvvEEEEEEEEPvS6_ + 104
   [bt] (7) 7   libsystem_pthread.dylib             0x00007fff8ccfa9af 
_pthread_body + 180
   [bt] (8) 8   libsystem_pthread.dylib             0x00007fff8ccfa8fb 
_pthread_body + 0
   [bt] (9) 9   libsystem_pthread.dylib             0x00007fff8ccfa101 
thread_start + 13
   
   An fatal error occurred in asynchronous engine operation. If you do not know 
what caused this error, you can try set environment variable MXNET_ENGINE_TYPE 
to NaiveEngine and run with debugger (i.e. gdb). This will force all operations 
to be synchronous and backtrace will give you the series of calls that lead to 
this error. Remember to set MXNET_ENGINE_TYPE back to empty after debugging.
   
   Stack trace returned 7 entries:
   [bt] (0) 0   libmxnet.so                         0x00000001077c51f8 
_ZN4dmlc15LogMessageFatalD2Ev + 40
   [bt] (1) 1   libmxnet.so                         0x00000001085bc30b 
_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE
 + 1115
   [bt] (2) 2   libmxnet.so                         0x00000001085befc1 
_ZNSt3__110__function6__funcIZZN5mxnet6engine23ThreadedEnginePerDevice13PushToExecuteEPNS3_8OprBlockEbENKUlvE_clEvEUlvE_NS_9allocatorIS8_EEFvvEEclEv
 + 65
   [bt] (3) 3   libmxnet.so                         0x00000001085bc728 
_ZNSt3__114__thread_proxyINS_5tupleIJNS_8functionIFvvEEEEEEEEPvS6_ + 104
   [bt] (4) 4   libsystem_pthread.dylib             0x00007fff8ccfa9af 
_pthread_body + 180
   [bt] (5) 5   libsystem_pthread.dylib             0x00007fff8ccfa8fb 
_pthread_body + 0
   [bt] (6) 6   libsystem_pthread.dylib             0x00007fff8ccfa101 
thread_start + 13
   
   libc++abi.dylib: terminating with uncaught exception of type dmlc::Error: 
[17:53:42] src/engine/./threaded_engine.h:347: [17:53:42] 
src/operator/tensor/./matrix_op-inl.h:281: Check failed: req[0] == kWriteTo (3 
vs. 1) Transpose does not support inplace
   
   Stack trace returned 10 entries:
   [bt] (0) 0   libmxnet.so                         0x00000001077c51f8 
_ZN4dmlc15LogMessageFatalD2Ev + 40
   [bt] (1) 1   libmxnet.so                         0x000000010849c4d7 
_ZN5mxnet2op9TransposeIN7mshadow3cpuEEEvRKN4nnvm9NodeAttrsERKNS_9OpContextERKNSt3__16vectorINS_5TBlobENSB_9allocatorISD_EEEERKNSC_INS_9OpReqTypeENSE_ISJ_EEEESI_
 + 567
   [bt] (2) 2   libmxnet.so                         0x00000001085c5db7 
_ZN5mxnet4exec16FComputeExecutor3RunENS_10RunContextEb + 103
   [bt] (3) 3   libmxnet.so                         0x00000001085e6025 
_ZNSt3__110__function6__funcIZN5mxnet4exec13GraphExecutor18CreateCachedSegOprEmmE3$_6NS_9allocatorIS5_EEFvNS2_10RunContextENS2_6engine18CallbackOnCompleteEEEclEOS8_OSA_
 + 117
   [bt] (4) 4   libmxnet.so                         0x00000001085bc032 
_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE
 + 386
   [bt] (5) 5   libmxnet.so                         0x00000001085befc1 
_ZNSt3__110__function6__funcIZZN5mxnet6engine23ThreadedEnginePerDevice13PushToExecuteEPNS3_8OprBlockEbENKUlvE_clEvEUlvE_NS_9allocatorIS8_EEFvvEEclEv
 + 65
   [bt] (6) 6   libmxnet.so                         0x00000001085bc728 
_ZNSt3__114__thread_proxyINS_5tupleIJNS_8functionIFvvEEEEEEEEPvS6_ + 104
   [bt] (7) 7   libsystem_pthread.dylib             0x00007fff8ccfa9af 
_pthread_body + 180
   [bt] (8) 8   libsystem_pthread.dylib             0x00007fff8ccfa8fb 
_pthread_body + 0
   [bt] (9) 9   libsystem_pthread.dylib             0x00007fff8ccfa101 
thread_start + 13
   
   An fatal error occurred in asynchronous engine operation. If you do not know 
what caused this error, you can try set environment variable MXNET_ENGINE_TYPE 
to NaiveEngine and run with debugger (i.e. gdb). This will force all operations 
to be synchronous and backtrace will give you the series of calls that lead to 
this error. Remember to set MXNET_ENGINE_TYPE back to empty after debugging.
   
   Stack trace returned 7 entries:
   [bt] (0) 0   libmxnet.so                         0x00000001077c51f8 
_ZN4dmlc15LogMessageFatalD2Ev + 40
   [bt] (1) 1   libmxnet.so                         0x00000001085bc30b 
_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE
 + 1115
   [bt] (2) 2   libmxnet.so                         0x00000001085befc1 
_ZNSt3__110__function6__funcIZZN5mxnet6engine23ThreadedEnginePerDevice13PushToExecuteEPNS3_8OprBlockEbENKUlvE_clEvEUlvE_NS_9allocatorIS8_EEFvvEEclEv
 + 65
   [bt] (3) 3   libmxnet.so                         0x00000001085bc728 
_ZNSt3__114__thread_proxyINS_5tupleIJNS_8functionIFvvEEEEEEEEPvS6_ + 104
   [bt] (4) 4   libsystem_pthread.dylib             0x00007fff8ccfa9af 
_pthread_body + 180
   [bt] (5) 5   libsystem_pthread.dylib             0x00007fff8ccfa8fb 
_pthread_body + 0
   [bt] (6) 6   libsystem_pthread.dylib             0x00007fff8ccfa101 
thread_start + 13
   
   Abort trap: 6
   ```
 
----------------------------------------------------------------
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