laiguokun / LSTNet

MIT License
635 stars 171 forks source link

BUG #19

Open yaoslivy opened 2 years ago

yaoslivy commented 2 years ago

File "/media/yaoshuilin/common/run/LSTNet-master/models/LSTNet.py", line 53, in forward s = s.view(batch_size, self.hidC, self.pt, self.skip); TypeError: view(): argument 'size' must be tuple of ints, but found element of type float at pos 3

ypwang61 commented 2 years ago

I meet the same problem as yours

shuqincao commented 2 years ago

我也遇到了同样的问题,请问你们解决了吗

Merisse commented 2 years ago

这个是说pt应该为int 而不是float 我的处理方式是float转化为int类型 ,但不知道这样处理对不对

tianyuzelin commented 2 years ago

you can see https://github.com/laiguokun/LSTNet/issues/16

RiekeZoe commented 1 year ago

you can see #16 Great, that solves it, thanks!