Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSTNet self.pt is wrong #16

Open
YohannaYin opened this issue Jul 7, 2021 · 2 comments
Open

LSTNet self.pt is wrong #16

YohannaYin opened this issue Jul 7, 2021 · 2 comments

Comments

@YohannaYin
Copy link

TypeError: view(): argument 'size' must be tuple of ints, but found element of type float at pos 3

when I change self.pt = (self.P - self.Ck) / self.skip to self.pt = int((self.P - self.Ck) / self.skip).
it works well.

@GeorgeG92
Copy link

TypeError: view(): argument 'size' must be tuple of ints, but found element of type float at pos 3

when I change self.pt = (self.P - self.Ck) / self.skip to self.pt = int((self.P - self.Ck) / self.skip). it works well.

Thanks that saved it for me!

@tianyuzelin tianyuzelin mentioned this issue Jun 2, 2022
@RiekeZoe
Copy link

Helped me too, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants