-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Model build error: Check failed: i >= 0 && i < ndim(): index = -2 must be in range [0, -1) #14751
Comments
Hey, this is the MXNet Label Bot. |
@mxnet-label-bot add [keras] |
Hi @atopion, thanks for the issue, could you share the following to help us debug?
I'm running
|
Hello,
Sofar, I've tried the examples:
which all failed. @roywei : In your answer I've seen you're using atopion |
Hi @atopion, on my side both 2.7 and 3.6 works, tested on mac and linux. Now I will find a windows machine and test it. May due to OS. |
Hi @atopion, I'm still trying to find a windows machine to test on. In the mean time, could you try complete remove and re-install mxnet again?
but from the commit hash you reported and error message it's the latest master. I have verified the following works fine on linux: pip3 and python3 also works If you still face thi error, please let me know the mxnet version you used. if pip package, package name( mxnet-mkl, mxnet-cu90, mxnet-cu90mkl, ect), if build from source, what are the build flags? refer to install guide |
Hello @roywei,
Following your suggestion I uninstalled it and tried out installing different versions via pip, here are the results:
So to me it seems like an error in one of the latest commits, which does not occur when mkl is used (maybe a wrong api call to OpenBLAS or so). atopion |
Hello, Should I close the issue? |
raise MXNetError(py_str(_LIB.MXGetLastError())) |
We noticed that we are getting this error when binding a regress output that isn't explicitly labelled. We added regress_label during bind and it fixed the error for us. |
Description
On Windows: Building of keras models fails on adding Dense layers with this error message. This happens regardless if package is build from source or downloaded via pip, with or without cuda.
I first encountered this error as I tried to start https://github.com/roatienza/Deep-Learning-Experiments/blob/master/Experiments/Tensorflow/GAN/dcgan_mnist.py with mxnet instead of tensorflow backend. Afterwards I tried a couple examples on https://github.com/awslabs/keras-apache-mxnet/tree/master/examples which all failed with this error.
I did not find this error on any other issue or in any forum, so I opened a new issue.
Environment info (Required)
Package used (Python/R/Scala/Julia): Python 3.7.2
Build info
Compiler (gcc/clang/mingw/visual studio): visual studio
MXNet commit hash: dc48cd2
Build config: Build command:
Error Message:
Steps to reproduce
git clone https://github.com/awslabs/keras-apache-mxnet.git
cd examples
python ./lstm_text_generation.py
The text was updated successfully, but these errors were encountered: