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

Testing with conv_mnist.py #190

Closed
lehahoang opened this issue Feb 14, 2019 · 3 comments
Closed

Testing with conv_mnist.py #190

lehahoang opened this issue Feb 14, 2019 · 3 comments

Comments

@lehahoang
Copy link

Hello,
I simply tested the conv_mnist.py to see what to be shown but eventually I got this message:

Loading training labels from serialized object file.
Begin training.
Progress: 0 / 60000 (0.0000 seconds)
Traceback (most recent call last):
File "conv_mnist.py", line 151, in
network.run(inpts=inpts, time=time) #, clamp=clamp)
File "/homes/lhoang/anaconda3/lib/python3.7/site-packages/bindsnet/network/init.py", line 250, in run
inpts.update(self.get_inputs())
File "/homes/lhoang/anaconda3/lib/python3.7/site-packages/bindsnet/network/init.py", line 189, in get_inputs
inpts[c[1]] += self.connections[c].compute(source.s)
File "/homes/lhoang/anaconda3/lib/python3.7/site-packages/bindsnet/network/topology.py", line 153, in compute
post = s.float().view(-1) @ self.w + self.b
RuntimeError: Expected tensor to have size 400 at dimension 1, but got size 4 for argument #2 'batch2' (while checking arguments for bmm)

As I am new to PyTorch, is there any solution to fix the problem?
Thank you.

@Hananel-Hazan
Copy link
Collaborator

What are the parameters that you tested?
Have you change something in the example from the repo?

@djsaunde
Copy link
Collaborator

@Hananel-Hazan I got the same error without any changes. I'll try to fix it today if I have time.

@lehahoang
Copy link
Author

Dear @Hananel-Hazan,
I haven't changed anything in the source code taken from the repo.

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

3 participants