Closed gpolov-personal closed 4 years ago
@GPoloVera I cannot reproduce it with the master version. Actually, I've checked the exception here in the test: https://github.com/apache/incubator-mxnet/pull/16180/files
Can you try pip install mxnet --pre
to install the latest wheel? It should have been fixed after 9/15.
@reminisce, that solved the problem, thank you very much!!
The thing is the version is still the 1.6.0. In the Dive Dive into Deep Learning course that uses mxnet they say to install mxnet this way
pip install mxnet==1.6.0b20190915
Is this a problem that only occurs sometimes? (in MAC environment for example) or something that it is a bug of the 0b20190915 "subversion" because it is pretty weird nobody has reported before
@GPoloVera D2L will depend on MXNet v1.6.0 eventually. I encourage you to always use the latest nightly wheel to run D2L to get the latest feature and bug fixes. If you spot something broken, feel free to file issues so that we can still fix them before v1.6.0 is released.
Description
When using the module np from mxnet, any operation that in the numpy package raises an exception "Value Error that the operands could not be broadcast together with shapes", in the np module of mxnet a segmentation fault: 11 occurs.
Error Message
To Reproduce
Create an environment, install python 3.7 and pip, install mxnet using pip (pip install mxnet==1.6.0b20190915, I have a Mac) and then directly in a python interactive session run any np instruction that would raise an exception in numpy (Value Error that the operands could not be broadcast together with shapes).
Steps to reproduce
With miniconda3 installed, execute the next commands:
curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python
paste outputs here
----------Python Info---------- Version : 3.7.5 Compiler : Clang 4.0.1 (tags/RELEASE_401/final) Build : ('default', 'Oct 25 2019 10:52:18') Arch : ('64bit', '') ------------Pip Info----------- Version : 19.3.1 Directory : /Users/gonzalopolo/.conda/envs/mxnet_test/lib/python3.7/site-packages/pip ----------MXNet Info----------- Version : 1.6.0 Directory : /Users/gonzalopolo/.conda/envs/mxnet_test/lib/python3.7/site-packages/mxnet Num GPUs : 0 Commit Hash : e9e267ef711261f20528d443f38eb7b9e991057c ----------System Info---------- Platform : Darwin-18.7.0-x86_64-i386-64bit system : Darwin node : Gonzalos-MacBook-Pro.local release : 18.7.0 version : Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64 ----------Hardware Info---------- machine : x86_64 processor : i386 b'machdep.cpu.brand_string: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz' b'machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C' b'machdep.cpu.leaf7_features: RDWRFSGS TSC_THREAD_OFFSET SGX BMI1 AVX2 SMEP BMI2 ERMS INVPCID FPU_CSDS MPX RDSEED ADX SMAP CLFSOPT IPT SGXLC MDCLEAR TSXFA IBRS STIBP L1DF SSBD' b'machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT PREFETCHW RDTSCP TSCI' ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0424 sec, LOAD: 0.6233 sec. Timing for GluonNLP GitHub: https://github.com/dmlc/gluon-nlp, DNS: 0.0005 sec, LOAD: 0.6125 sec. Timing for GluonNLP: http://gluon-nlp.mxnet.io, DNS: 1.0599 sec, LOAD: 0.2111 sec. Timing for D2L: http://d2l.ai, DNS: 0.0373 sec, LOAD: 0.3267 sec. Timing for D2L (zh-cn): http://zh.d2l.ai, DNS: 0.0440 sec, LOAD: 0.4644 sec. Timing for FashionMNIST: https://repo.mxnet.io/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0506 sec, LOAD: 0.8738 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0339 sec, LOAD: 0.5021 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0264 sec, LOAD: 0.2297 sec.