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

Variable name bug in block.AbstractInput #104

Closed
3 of 12 tasks
fangwei123456 opened this issue Sep 20, 2022 · 0 comments
Closed
3 of 12 tasks

Variable name bug in block.AbstractInput #104

fangwei123456 opened this issue Sep 20, 2022 · 0 comments

Comments

@fangwei123456
Copy link
Contributor

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:

Traceback (most recent call last):
  File "/home/wfang/spikingjelly_dev/spikingjelly/test.py", line 6, in <module>
    print(net(torch.rand([1, 2, 3])))
  File "/home/wfang/anaconda3/envs/lava-env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/wfang/anaconda3/envs/lava-env/lib/python3.10/site-packages/lava/lib/dl/slayer/block/base.py", line 94, in forward
    self.input_shape = input.shape[1:-1]
AttributeError: 'builtin_function_or_method' object has no attribute 'shape'

Expected behavior:

  • No error is raised.

Steps to reproduce:

  • Please run codes in Related code.

Related code:

import torch
from lava.lib.dl import slayer

net = slayer.block.cuba.Input()
print(net(torch.rand([1, 2, 3])))

Other information:

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