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

Bugs in pool when stride is odd #101

Open
3 of 12 tasks
fangwei123456 opened this issue Sep 15, 2022 · 1 comment
Open
3 of 12 tasks

Bugs in pool when stride is odd #101

fangwei123456 opened this issue Sep 15, 2022 · 1 comment
Assignees
Labels
0-needs-estimate 1-bug Something isn't working

Comments

@fangwei123456
Copy link
Contributor

fangwei123456 commented Sep 15, 2022

Objective of issue:

Lava DL version:

  • 0.3.0 (feature release)
  • 0.2.1 (bug fixes)
  • 0.2.0 (current version)
  • 0.1.2

Lava version:

  • 0.4.0 (feature release)
  • 0.3.1 (bug fixes)
  • 0.3.0 (current version)
  • 0.2.0
  • 0.1.2

I'm submitting a ...

  • bug report
  • feature request
  • documentation request

Current behavior:

  • Raise an error
  File "/home/wfang/anaconda3/envs/lava-env/lib/python3.10/site-packages/lava/lib/dl/slayer/synapse/layer.py", line 502, in forward
    return result.reshape((
RuntimeError: shape '[2, 4, -1, 8, 4]' is invalid for input of size 2112

Expected behavior:

  • Output correct results

Steps to reproduce:

x = torch.rand([2, 4, 16, 16, 4])
pool = slayer.synapse.Pool(kernel_size=3, stride=2)
pool(x)

Related code:

insert short code snippets here

Other information:

(lava-env) wfang@mlg-ThinkStation-P920:~$ conda list la
# packages in environment at /home/wfang/anaconda3/envs/lava-env:
#
# Name                    Version                   Build  Channel
lava                      0.4.0              pyhd8ed1ab_0    conda-forge
lava-dl                   0.2.0              pyhd8ed1ab_0    conda-forge
@pbonazzi
Copy link

The same error happens when the input shape (width and height) are odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-estimate 1-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants