You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/04 11:21:41 UTC

[GitHub] jgasthaus opened a new issue #14064: Inconsistent behavior in split() when num_outputs=1

jgasthaus opened a new issue #14064: Inconsistent behavior in split() when num_outputs=1
URL: https://github.com/apache/incubator-mxnet/issues/14064
 
 
   ## Description
   The behaviour of ```NDArray.split()``` is inconsistent and surprising when ```num_outputs=1```: When ```num_outputs > 1```, ```split()``` returns a list containing the individual split elements, but when ```num_outputs=1```, the single resulting array is returned directly, without being wrapped in a list.
   
   ```
   In[42]: type(nd.ones((2, 1, 4, 5)).split(num_outputs=1, axis=1))
   Out[42]: mxnet.ndarray.ndarray.NDArray
   
   In[43]: type(nd.ones((2, 2, 4, 5)).split(num_outputs=2, axis=1))
   Out[43]: list
   ```
   
   If this is the intended behavior, it appears to be undocumented.
   
   See also #8827.
   
   ## Environment info (Required)
   
   ```
   ----------Python Info----------
   Version      : 3.6.1
   Compiler     : GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)
   Build        : ('default', 'Mar 23 2017 16:49:01')
   Arch         : ('64bit', '')
   ------------Pip Info-----------
   Version      : 18.1
   Directory    : ***/lib/python3.6/site-packages/pip
   ----------MXNet Info-----------
   Version      : 1.3.1
   Directory    : ***/lib/python3.6/site-packages/mxnet
   Commit Hash   : 19c501680183237d52a862e6ae1dc4ddc296305b
   ----------System Info----------
   Platform     : Darwin-15.6.0-x86_64-i386-64bit
   system       : Darwin
   node         : ***
   release      : 15.6.0
   version      : Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64
   ----------Hardware Info----------
   machine      : x86_64
   processor    : i386
   b'machdep.cpu.brand_string: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz'
   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: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 AVX2 BMI2 INVPCID SMAP RDSEED ADX IPT FPU_CSDS'
   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.4511 sec, LOAD: 0.6549 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0768 sec, LOAD: 1.3912 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0529 sec, LOAD: 1.3386 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0608 sec, LOAD: 1.5901 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0612 sec, LOAD: 1.2379 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0534 sec, LOAD: 1.0818 sec.
   ```
   
   Package used (Python/R/Scala/Julia):
   Python

----------------------------------------------------------------
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