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

Membrane Updates Metric #205

Merged
merged 2 commits into from
May 8, 2024
Merged

Membrane Updates Metric #205

merged 2 commits into from
May 8, 2024

Conversation

ben9809
Copy link
Contributor

@ben9809 ben9809 commented Apr 17, 2024

Description

This pull request introduces a new performance metric, membrane_updates. This metric counts the number of membrane potential updates within spiking neural networks (SNNs). It tracks these updates across different network neurons.

Motivation

The membrane_updates metric aims to capture membrane potential development over multiple steps by counting stateful operations that, together with the synaptic operations, reflect the actual workload in neuromorphic computing models.

Recent research (https://arxiv.org/pdf/2306.15749v4.pdf) has highlighted the importance of considering stateful operations in the analysis of SNNs.

@ben9809 ben9809 requested a review from jasonlyik April 17, 2024 22:42
@ben9809 ben9809 changed the title Membrane Updates metric Membrane Updates Metric Apr 18, 2024
@jasonlyik
Copy link
Contributor

Looks good @ben9809, could you also cover with a test in tests/test_metrics.py?

Hoping that the memory requirements don't blow up from saving all info under same hook, it should be fine for now since it's just for SNN, but maybe in the future we could use separate hooks.

Could you also add in the docstring of the metric that this metric should only be used with SNNs / also only currently works for SNNTorch?

@ben9809
Copy link
Contributor Author

ben9809 commented Apr 18, 2024

Sure @jasonlyik!!

@jasonlyik jasonlyik merged commit 5b4f1db into dev May 8, 2024
1 check passed
@jasonlyik jasonlyik deleted the feature/membrane_updates branch May 16, 2024 21:33
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

Successfully merging this pull request may close these issues.

2 participants