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

Phinet DWConv Autopad for different kernel shapes #85

Open
sciapponi opened this issue Feb 6, 2024 · 0 comments
Open

Phinet DWConv Autopad for different kernel shapes #85

sciapponi opened this issue Feb 6, 2024 · 0 comments

Comments

@sciapponi
Copy link

sciapponi commented Feb 6, 2024

Row 452 in micromind.networks.phinet:

change:

padding=k_size // 2 if stride == 1 else (padding[1], padding[3]),

to

padding=k_size // 2 if isinstance(k_size, int) and stride==1 else [x // 2 for x in k_size] if stride == 1 else (padding[1],padding[3]),
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

1 participant