leezu opened a new issue #17810: GraphExecutor + Numpy + Dynamic shape crash URL: https://github.com/apache/incubator-mxnet/issues/17810 ## Description There seem to be some issues with GraphExecutor + Numpy + Dynamic shape. Consider the example below, which leads to a crash if `mx.npx.set_np()` is present and works fine if `mx.npx.set_np()` is removed. ### Error Message `mxnet.base.MXNetError: MXNetError: Error in operator transpose0: [05:51:41] src/operator/numpy/np_matrix_op.cc:65: Check failed: out_shp.ndim() == shp.ndim() (1 vs. 2)` ## To Reproduce ``` python import mxnet as mx mx.npx.set_np() a = mx.sym.np.arange(10) sym = mx.sym.np._internal.nonzero(a).transpose() print(sym.bind(mx.cpu(), args={}).forward()) ``` ## Environment ``` ----------Python Info---------- Version : 3.8.0 Compiler : GCC 7.4.0 Build : ('default', 'Dec 19 2019 07:43:30') Arch : ('64bit', 'ELF') ------------Pip Info----------- Version : 20.0.2 Directory : /home/ANT.AMAZON.COM/lausen/.pyenv/versions/3.8.0-debug/lib/python3.8/site-packages/pip ----------MXNet Info----------- Version : 2.0.0 Directory : /home/ANT.AMAZON.COM/lausen/.local/lib/python3.8/site-packages/mxnet Num GPUs : 0 Hashtag not found. Not installed from pre-built package. ----------System Info---------- Platform : Linux-5.5.5-x86_64-with-glibc2.27 system : Linux node : u1a1005b292e450.ant.amazon.com release : 5.5.5 version : #1 SMP Thu Feb 20 06:05:19 UTC 2020 ----------Hardware Info---------- machine : x86_64 processor : x86_64 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 142 Model name: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz Stepping: 12 CPU MHz: 2743.717 CPU max MHz: 4800.0000 CPU min MHz: 400.0000 BogoMIPS: 4199.88 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K NUMA node0 CPU(s): 0-7 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities ----------Network Test---------- Setting timeout: 10 ```
---------------------------------------------------------------- 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
