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

Error in class MLP def forward #34

Open
sherryxia2016 opened this issue Aug 1, 2021 · 2 comments
Open

Error in class MLP def forward #34

sherryxia2016 opened this issue Aug 1, 2021 · 2 comments

Comments

@sherryxia2016
Copy link

sherryxia2016 commented Aug 1, 2021

The step x = F.elu(self.fc1(inputs)) has error. When using the forward in MLP class, the error says "mat1 and mat2 shapes cannot be multiplied (640*16 and 196*512)".

@ethanfetaya
Copy link
Owner

Hi Sherry,
Did you use the older version of pytorch we developed the code in? maybe this caused the issue

@sherryxia2016
Copy link
Author

sherryxia2016 commented Aug 2, 2021

Hi Sherry,
Did you use the older version of PyTorch we developed the code in? maybe this caused the issue

Will I've tried to switch the version to 0.2. However, it still has an error. args.timesteps * args.dims = 49*4=196 is in_dim by default, but the input dimension is 128*5*4
*4 also 640*16, which is not dimension with 196.
Should I change the arguments from default? Or better way to change the code?

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

2 participants