Open sandeep-krishnamurthy opened 7 years ago
Stack trace for reference:
Loading data...
8982 train sequences
2246 test sequences
46 classes
Vectorizing sequence data...
X_train shape: (8982, 1000)
X_test shape: (2246, 1000)
Convert class vector to binary class matrix (for use with categorical_crossentropy)
Y_train shape: (8982, 46)
Y_test shape: (2246, 46)
Building model...
Train on 8083 samples, validate on 899 samples
Epoch 1/5
/usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/module/bucketing_module.py:348: UserWarning: Optimizer created manually outside Module but rescale_grad is not normalized to 1.0/batch_size/num_workers (1.0 vs. 0.03125). Is this intended?
force_init=force_init)
8000/8083 [============================>.] - ETA: 0s - loss: 3.6955 - acc: 0.3495Traceback (most recent call last):
File "reuters_mlp.py", line 64, in
increase batch_size
Running Reuters Topic Classification Model under keras/example for MXNet backend with 8 GPU errors out with following error: Error: Too many slices such that some splits are empty
Code - https://github.com/fchollet/keras/blob/master/examples/reuters_mlp.py
Setting:
However, same example works with Tensorflow backend.
Also, with MXNet backend for 1, 2, 4 GPUs it works fine.