Traceback (most recent call last):


 "main.py", line 240, in <module>

train()


 "main.py", line 196, in train

output, hidden, rnn_hs, dropped_rnn_hs = model(data, hidden, return_h=True)


 "/home/sahar.abdelnabi/anaconda3/envs/new_py/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "/home/sahar.abdelnabi/awd_lstm_lm/model.py", line 83, in forward

raw_output, new_h = rnn(raw_output, hidden[l])


 "/home/sahar.abdelnabi/anaconda3/envs/new_py/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "/home/sahar.abdelnabi/awd_lstm_lm/weight_drop.py", line 46, in forward

self._setweights()


 "/home/sahar.abdelnabi/awd_lstm_lm/weight_drop.py", line 43, in _setweights

setattr(self.module, name_w, w)


 "/home/sahar.abdelnabi/anaconda3/envs/new_py/lib/python3.7/site-packages/torch/nn/modules/module.py", line 610, in __setattr__

.format(torch.typename(value), name))
TypeError: cannot assign 'torch.cuda.FloatTensor' as parameter 'weight_hh_l0' (torch.nn.Parameter or None expected)

Traceback (most recent call last):


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplot/NanoPlot.py", line 61, in main

make_plots(datadf, settings, args)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplot/NanoPlot.py", line 260, in make_plots

log=settings["logBool"])


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplotter/nanoplotter.py", line 250, in length_plots

kde_kws={"label": name, "clip": (0, maxvalx)})


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 224, in distplot

kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 657, in kdeplot

cumulative=cumulative, **kwargs)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 273, in _univariate_kdeplot

cumulative=cumulative)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 345, in _statsmodels_univariate_kde

kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py", line 146, in fit

clip=clip, cut=cut)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py", line 506, in kdensityfft

f = revrt(zstar)


 "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kdetools.py", line 20, in revrt

y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
TypeError: slice indices must be integers or None or have an __index__ method
