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

padding=same? #7

Closed
linhaoqi027 opened this issue Oct 15, 2021 · 1 comment
Closed

padding=same? #7

linhaoqi027 opened this issue Oct 15, 2021 · 1 comment

Comments

@linhaoqi027
Copy link

https://github.com/tmp-iclr/convmixer/blob/1cefd860a1a6a85369887d1a633425cedc2afd0a/convmixer.py#L18 There is an error:TypeError: conv2d(): argument 'padding' (position 5) must be tuple of ints, not str.

@tmp-iclr
Copy link
Collaborator

I think padding="same" wasn't added to PyTorch until version 1.9, so you may need to upgrade to use that particular argument. However, you could also just use an odd-sized kernel and set padding=kernel_size//2.

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