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

Hebbian rule throws an error #5

Open
marina-kaz opened this issue Feb 1, 2023 · 1 comment
Open

Hebbian rule throws an error #5

marina-kaz opened this issue Feb 1, 2023 · 1 comment

Comments

@marina-kaz
Copy link

Hi!

I find this repository very curious, thank you!

However, I've tried to run the code with the Hebbian update rule, and I run across several exceptions.

  1. It seems that in pytorch_hebbian/handlers/tensorboard_logger.py in line 8, BaseWeightsHandler should be imported instead of BaseWeightsHistHandler.

  2. Running HebbsRule from hebb.py results with RuntimeError: 1D tensors expected, but got 2D and 1D tensors. I believe it is due to the torch.dot(w, x) operation: in PyTorch, dot only supports computing the dot product of two 1D tensors with the same number of elements, in contrast to NumPy.

Is there a way to fix it? Do you have any plans on continuing working on this project?

@julestalloen
Copy link
Owner

julestalloen commented Feb 2, 2023

Hi @marina-kaz

What version of PyTorch are you using? I did not run into these issues so I'm assuming it is because of a version mismatch.

I am no longer maintaining this repository but updates and contributions are welcome.

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