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

Unoptimized Weights with bitAccurateSynapses #859

Open
Michaeljurado42 opened this issue May 24, 2024 · 1 comment
Open

Unoptimized Weights with bitAccurateSynapses #859

Michaeljurado42 opened this issue May 24, 2024 · 1 comment
Assignees
Labels
1-bug Something isn't working

Comments

@Michaeljurado42
Copy link
Contributor

Michaeljurado42 commented May 24, 2024

Describe the bug

I was converting lava-dl networks to lava via netx and noticed that the weight values were inflated. From what I understand, loihi2 should optimize weight matrices.

The issue can be solved by calling optimize_weight_bits after truncate_weights.

To reproduce current behavior

Try running this test: https://github.com/lava-nc/lava-dl/files/15328518/small_test.zip
and you will see that the weights are scaled from 64 to 128 with weight_exp = -1.

Expected behavior
weights should be optimized to 1 with weight_exp = 6.

Additional context

This issue can also technically be fixed in lava-dl by pre-optimizing the weights in lava-dl like this.

Although, if we properly fix the issue in lava we can remove most of the logic in lava-dl's fix_optimize_weights which is redundant with lava anyway

@Michaeljurado42 Michaeljurado42 added the 1-bug Something isn't working label May 24, 2024
@github-actions github-actions bot added the 0-needs-review For all new issues label May 24, 2024
@PhilippPlank PhilippPlank removed the 0-needs-review For all new issues label Jul 11, 2024
@PhilippPlank
Copy link
Contributor

Thank you for reporting this bug/potential improvement. We will take a look when we find some time.

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

No branches or pull requests

3 participants