R-net icon indicating copy to clipboard operation
R-net copied to clipboard

cannot reshape array of size 26920800 into shape (91605,300)

Open ajinkyaThorwat opened this issue 5 years ago • 1 comments

glove = np.reshape(glove,(Params.vocab_size,Params.emb_size)) File "/home/kamal/.local/share/virtualenvs/R-net-master-kpkmZweY/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape return _wrapfunc(a, 'reshape', newshape, order=order) File "/home/kamal/.local/share/virtualenvs/R-net-master-kpkmZweY/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) ValueError: cannot reshape array of size 26920800 into shape (91605,300)

Im getting this...please help thank you in advance

ajinkyaThorwat avatar May 05 '19 09:05 ajinkyaThorwat

Change the vocab_size to 89736 in params.py file and start train again. Hope this will help

rajdeinno avatar May 15 '19 13:05 rajdeinno