{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7920","repository_url":"https://api.github.com/repos/apache/incubator-mxnet","labels_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7920/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7920/comments","events_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7920/events","html_url":"https://github.com/apache/incubator-mxnet/issues/7920","id":258264181,"number":7920,"title":"csr binary operator bug ","user":{"login":"eric-haibin-lin","id":5545640,"avatar_url":"https://avatars1.githubusercontent.com/u/5545640?v=4","gravatar_id":"","url":"https://api.github.com/users/eric-haibin-lin","html_url":"https://github.com/eric-haibin-lin","followers_url":"https://api.github.com/users/eric-haibin-lin/followers","following_url":"https://api.github.com/users/eric-haibin-lin/following{/other_user}","gists_url":"https://api.github.com/users/eric-haibin-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-haibin-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-haibin-lin/subscriptions","organizations_url":"https://api.github.com/users/eric-haibin-lin/orgs","repos_url":"https://api.github.com/users/eric-haibin-lin/repos","events_url":"https://api.github.com/users/eric-haibin-lin/events{/privacy}","received_events_url":"https://api.github.com/users/eric-haibin-lin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-16T23:03:00Z","updated_at":"2017-09-18T15:02:00Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"For bugs or installation issues, please provide the following information.\r\nThe more information you provide, the more likely people will be able to help you.\r\n\r\n## Environment info\r\nOperating System: DeepLearning Ubuntu AMI\r\n\r\nCompiler:\r\n\r\nPackage used (Python/R/Scala/Julia): Python\r\n\r\nMXNet version: \r\n\r\nOr if installed from source: \r\n\r\nMXNet commit hash (`git rev-parse HEAD`): 9d56db66e2e94a8a3d9bf020b9682e91e7baf203\r\n \r\nIf you are using python package, please provide\r\n\r\nPython version and distribution:\r\n\r\nIf you are using R package, please provide\r\n\r\nR `sessionInfo()`:\r\n\r\n## Error Message:\r\nPlease paste the full error message, including stack trace.\r\n```\r\n>>> import mxnet as mx; a = mx.nd.sparse.zeros('csr', (1,1)); b = mx.nd.elemwise_add(a,a)                                                                                  \r\n>>> [22:57:41] /home/ubuntu/upstream-cpu/dmlc-core/include/dmlc/logging.h:308: [22:57:41] src/operator/tensor/./elemwise_binary_op-inl.h:257: Check failed: output.aux_shape(csr::kIn\r\ndPtr) == lhs.aux_shape(csr::kIndPtr) ((2,) vs. (0,))\r\n\r\nStack trace returned 10 entries:\r\n[bt] (0) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3f) [0x7fb0ffb633db]\r\n[bt] (1) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet2op16ElemwiseBinaryOp8CsrCsrOpIfllN7mshadow2op4plusEEEvPNS3_6StreamINS3_3cpuEEERKN4nnvm9NodeAttrsERKN$\r\n_9OpContextERKNS_7NDArrayESJ_NS_9OpReqTypeESJ_+0x47a) [0x7fb1004a4688]\r\n[bt] (2) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet2op16ElemwiseBinaryOp9ComputeExIN7mshadow3cpuENS3_2op4plusEEEvRKN4nnvm9NodeAttrsERKNS_9OpContextERKSt$\r\nvectorINS_7NDArrayESaISF_EERKSE_INS_9OpReqTypeESaISK_EESJ_+0x989) [0x7fb100478837]\r\n[bt] (3) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZNSt17_Function_handlerIFvRKN4nnvm9NodeAttrsERKN5mxnet9OpContextERKSt6vectorINS4_7NDArrayESaIS9_EERKS8_INS4_9$\r\npReqTypeESaISE_EESD_EPSJ_E9_M_invokeERKSt9_Any_dataS3_S7_SD_SI_SD_+0x91) [0x7fb0ffdc8897]\r\n[bt] (4) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZNKSt8functionIFvRKN4nnvm9NodeAttrsERKN5mxnet9OpContextERKSt6vectorINS4_7NDArrayESaIS9_EERKS8_INS4_9OpReqType$\r\nSaISE_EESD_EEclES3_S7_SD_SI_SD_+0xa6) [0x7fb10134bb28]\r\n[bt] (5) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(+0x265f37d) [0x7fb10134237d]\r\n[bt] (6) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(+0x2663893) [0x7fb101346893]\r\n[bt] (7) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZNKSt8functionIFvN5mxnet10RunContextENS0_6engine18CallbackOnCompleteEEEclES1_S3_+0x85) [0x7fb10137ba1b]\r\n[bt] (8) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE+0x200) [0x7fb101386cb0]\r\n[bt] (9) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet6engine23ThreadedEnginePerDevice9CPUWorkerILN4dmlc19ConcurrentQueueTypeE0EEEvNS_7ContextEPNS1_17Threa$\r\nWorkerBlockIXT_EEE+0x4e) [0x7fb10138a076]\r\n\r\n[22:57:41] /home/ubuntu/upstream-cpu/dmlc-core/include/dmlc/logging.h:308: [22:57:41] src/engine/./threaded_engine.h:347: [22:57:41] src/operator/tensor/./elemwise_binary_op-inl.h:$\r\n57: Check failed: output.aux_shape(csr::kIndPtr) == lhs.aux_shape(csr::kIndPtr) ((2,) vs. (0,))\r\n\r\nStack trace returned 10 entries:\r\n[bt] (0) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3f) [0x7fb0ffb633db]\r\n[bt] (1) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet2op16ElemwiseBinaryOp8CsrCsrOpIfllN7mshadow2op4plusEEEvPNS3_6StreamINS3_3cpuEEERKN4nnvm9NodeAttrsERKN$\r\n_9OpContextERKNS_7NDArrayESJ_NS_9OpReqTypeESJ_+0x47a) [0x7fb1004a4688]\r\n[bt] (2) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet2op16ElemwiseBinaryOp9ComputeExIN7mshadow3cpuENS3_2op4plusEEEvRKN4nnvm9NodeAttrsERKNS_9OpContextERKSt$\r\nvectorINS_7NDArrayESaISF_EERKSE_INS_9OpReqTypeESaISK_EESJ_+0x989) [0x7fb100478837]\r\n[bt] (3) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZNSt17_Function_handlerIFvRKN4nnvm9NodeAttrsERKN5mxnet9OpContextERKSt6vectorINS4_7NDArrayESaIS9_EERKS8_INS4_9O\r\npReqTypeESaISE_EESD_EPSJ_E9_M_invokeERKSt9_Any_dataS3_S7_SD_SI_SD_+0x91) [0x7fb0ffdc8897]\r\n[bt] (4) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZNKSt8functionIFvRKN4nnvm9NodeAttrsERKN5mxnet9OpContextERKSt6vectorINS4_7NDArrayESaIS9_EERKS8_INS4_9OpReqTypeE\r\nSaISE_EESD_EEclES3_S7_SD_SI_SD_+0xa6) [0x7fb10134bb28]\r\n[bt] (5) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(+0x265f37d) [0x7fb10134237d]\r\n[bt] (6) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(+0x2663893) [0x7fb101346893]\r\n[bt] (7) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZNKSt8functionIFvN5mxnet10RunContextENS0_6engine18CallbackOnCompleteEEEclES1_S3_+0x85) [0x7fb10137ba1b]\r\n[bt] (8) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet6engine14ThreadedEngine15ExecuteOprBlockENS_10RunContextEPNS0_8OprBlockE+0x200) [0x7fb101386cb0]\r\n[bt] (9) /home/ubuntu/upstream-cpu/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet6engine23ThreadedEnginePerDevice9CPUWorkerILN4dmlc19ConcurrentQueueTypeE0EEEvNS_7ContextEPNS1_17Thread\r\nWorkerBlockIXT_EEE+0x4e) [0x7fb10138a076]\r\n\r\nA 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 wi\r\nth 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 b\r\nack to empty after debugging.\r\n```\r\n\r\n## Minimum reproducible example\r\nif you are using your own code, please provide a short script that reproduces the error.\r\n\r\n## Steps to reproduce\r\nor if you are running standard examples, please provide the commands you have run that lead to the error.\r\n\r\n1.  python\r\n2. import mxnet as mx; a = mx.nd.sparse.zeros('csr', (1,1)); b = mx.nd.elemwise_add(a,a)                                                                                   \r\n\r\n## What have you tried to solve it?\r\n\r\n1.\r\n2.\r\n3.\r\n\r\n@cjolivier01 \r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/comments/330251762","html_url":"https://github.com/apache/incubator-mxnet/issues/7920#issuecomment-330251762","issue_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/7920","id":330251762,"user":{"login":"cjolivier01","id":11234557,"avatar_url":"https://avatars1.githubusercontent.com/u/11234557?v=4","gravatar_id":"","url":"https://api.github.com/users/cjolivier01","html_url":"https://github.com/cjolivier01","followers_url":"https://api.github.com/users/cjolivier01/followers","following_url":"https://api.github.com/users/cjolivier01/following{/other_user}","gists_url":"https://api.github.com/users/cjolivier01/gists{/gist_id}","starred_url":"https://api.github.com/users/cjolivier01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjolivier01/subscriptions","organizations_url":"https://api.github.com/users/cjolivier01/orgs","repos_url":"https://api.github.com/users/cjolivier01/repos","events_url":"https://api.github.com/users/cjolivier01/events{/privacy}","received_events_url":"https://api.github.com/users/cjolivier01/received_events","type":"User","site_admin":false},"created_at":"2017-09-18T15:02:00Z","updated_at":"2017-09-18T15:02:00Z","author_association":"CONTRIBUTOR","body":"Taking a look..."}}
{"actor":{"display_login":"cjolivier01"}}