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 2020/07/25 13:02:25 UTC
[GitHub] [incubator-mxnet] Hrushikesh-github opened a new issue #18791: Error running kaggle on Colab as well as Kaggle Notebook
Hrushikesh-github opened a new issue #18791:
URL: https://github.com/apache/incubator-mxnet/issues/18791
## Description
Mxnet is giving the following error with a correct code.
This has been observer in the kaggle Notebook as well as Google Colab (!pip install mxnet-cu101) was done.
### Error Message
91 eval_metric=metrics,
92 batch_end_callback=batchEndCBs,
---> 93 epoch_end_callback=epochEndCBs)
94
95
/usr/local/lib/python3.6/dist-packages/mxnet/model.py in fit(self, X, y, eval_data, eval_metric, epoch_end_callback,
batch_end_callback, kvstore, logger, work_load_list, monitor, eval_end_callback, eval_batch_end_callback)
894 **(self.kwargs))
895 elif isinstance(self.optimizer, opt.Optimizer):
--> 896 if not optimizer.idx2name:
897 optimizer.idx2name = param_idx2name.copy()
898 optimizer = self.optimizer
UnboundLocalError: local variable 'optimizer' referenced before assignment
## To Reproduce
Kindly go through this link, it directs to the notebook:
For Google Colab, pip install mxnet-cu101 was done.
https://colab.research.google.com/drive/1G7Ul-RMjdgO0OpBQbnls_x0vi74QVzmT?usp=sharing
## Steps taken
1. I have run the program in my local system which has Mxnet built from source. I get an different error ( related to batch size ) which I believe is different from the above one
```
----------------------------------------------------------------
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:
users@infra.apache.org