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

stacks=2, bug #67

Open
baicuya opened this issue Mar 22, 2023 · 3 comments
Open

stacks=2, bug #67

baicuya opened this issue Mar 22, 2023 · 3 comments

Comments

@baicuya
Copy link

baicuya commented Mar 22, 2023

Unable to use stacks2,

For example:
input_len = 48, horizon = 6, batch_size = 32
res1 shape: torch.randn(32, 48, 2)
x shape: torch.randn(32, 6, 2)
x = torch.cat((res1, x), dim=1),
x shape: torch.randn(32, 54, 2)

issue:
x = self.blocks2(x)
d = x_odd.mul(torch.exp(self.phi(x_even)))

This tensor cannot match:
RuntimeError: The size of tensor a (7) must match the size of tensor b (8) at non-singleton dimension 2

@baicuya baicuya changed the title if stacks=2, Exception:RuntimeError,The size of tensor a (7) must match the size of tensor b (8) at non-singleton dimension 2 stacks=2, bug Mar 22, 2023
@VEWOXIC
Copy link
Contributor

VEWOXIC commented Mar 22, 2023

Looks like after the spliting, the x_odd and x_even have different length. Please check if the input satisfies the special requirement mentioned in the README.

@Hoju0216
Copy link

您好,请问您这个问题已经解决了吗?

@baicuya
Copy link
Author

baicuya commented Mar 19, 2024

没解决> 您好,请问您这个问题已经解决了吗?

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