iamthebot opened a new issue #14839: MXNetError: Invalid Parameter format for lrs expect tuple of <float> but value=... URL: https://github.com/apache/incubator-mxnet/issues/14839 ## Description (Brief description of the problem in no more than 2 sentences.) MxNet 1.5.0b20190429 introduces a regression from 1.4.0post0 when training with `keras-mxnet==2.2.4.1`: ``` File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/bighead/ml_frameworks/mxnet/keras.py", line 141, in fit return super(MXKerasClassifier, self).fit(x, self.binarizer.transform(y)) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/bighead/ml_frameworks/mxnet/keras.py", line 100, in fit return super(MXKerasModel, self).fit(x, y) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/bighead/ml_frameworks/keras/models.py", line 195, in fit self.history = self.model.fit(X, y, **self.fit_params) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/keras/engine/training.py", line 1054, in fit validation_steps=validation_steps) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/keras/engine/training_arrays.py", line 200, in fit_loop outs = fit_function(ins_batch) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/keras/backend/mxnet_backend.py", line 5487, in train_function self._module.update() File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/module/bucketing_module.py", line 479, in update self._curr_module.update() File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/module/module.py", line 673, in update param_names=self._exec_group.param_names) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/model.py", line 187, in _update_params updater(i, w, g) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/optimizer/optimizer.py", line 1673, in __call__ states) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/optimizer/optimizer.py", line 654, in update_multi_precision multi_precision=use_multi_precision) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/optimizer/optimizer.py", line 614, in _update_impl num_weights=len(weights), lrs=lrs, wds=wds, **kwargs) File "<string>", line 60, in multi_sgd_mom_update File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/_ctypes/ndarray.py", line 92, in _imperative_invoke ctypes.byref(out_stypes))) File "/opt/conda/envs/bighead_py36/lib/python3.6/site-packages/mxnet/base.py", line 254, in check_call raise MXNetError(py_str(_LIB.MXGetLastError())) mxnet.base.MXNetError: Invalid Parameter format for lrs expect tuple of <float> but value='[_mulscalar7:[tensor=True dtype=float32], _mulscalar9:[tensor=True dtype=float32], _mulscalar11:[tensor=True dtype=float32], _mulscalar13:[tensor=True dtype=float32]]', in operator multi_sgd_mom_update(name="", rescale_grad="1.0", momentum="0.9", wds="[0.0, 0.0, 0.0, 0.0]", lrs="[_mulscalar7:[tensor=True dtype=float32], _mulscalar9:[tensor=True dtype=float32], _mulscalar11:[tensor=True dtype=float32], _mulscalar13:[tensor=True dtype=float32]]", num_weights="4") ``` ## Environment info (Required) ``` ----------Python Info---------- Version : 3.6.7 Compiler : GCC 7.3.0 Build : ('default', 'Oct 23 2018 19:16:44') Arch : ('64bit', '') ------------Pip Info----------- Version : 9.0.3 Directory : /home/default_user/.conda/envs/user/lib/python3.6/site-packages/pip ----------MXNet Info----------- Version : 1.5.0 Directory : /home/default_user/.conda/envs/user/lib/python3.6/site-packages/mxnet Commit Hash : 64287dd23d880c6dd664ed7ab1460ee26c902fcf ----------System Info---------- Platform : Linux-4.4.0-146-generic-x86_64-with-debian-buster-sid system : Linux node : i-0ea613ef2afbeb983 release : 4.4.0-146-generic version : #172~14.04.1-Ubuntu SMP Fri Apr 5 16:51:29 UTC 2019 ----------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): 32 On-line CPU(s) list: 0-31 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz Stepping: 1 CPU MHz: 2699.265 CPU max MHz: 3000.0000 CPU min MHz: 1200.0000 BogoMIPS: 4600.03 Hypervisor vendor: Xen Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 46080K NUMA node0 CPU(s): 0-31 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx xsaveopt ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0029 sec, LOAD: 0.3729 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.1227 sec, LOAD: 0.0355 sec. Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.1190 sec, LOAD: 0.5799 sec. Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0157 sec, LOAD: 0.1435 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0131 sec, LOAD: 0.1619 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0023 sec, LOAD: 0.0270 sec. ``` Package used (Python/R/Scala/Julia): (I'm using ...) For Scala user, please provide: 1. Java version: (`java -version`) 2. Maven version: (`mvn -version`) 3. Scala runtime if applicable: (`scala -version`) For R user, please provide R `sessionInfo()`: ## Build info (Required if built from source) Compiler (gcc/clang/mingw/visual studio): MXNet commit hash: The 1.5.0b20190429 release on PyPi ## What have you tried to solve it? 1. Reverting to 1.4.0.post0 removes the error
---------------------------------------------------------------- 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
