Skip to content

How do we get the number of parameters in the network (SDNN and SNN) ? #236

Closed Answered by bamsumit
Kristi1217 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the standard torch way to get the number of parameters:
sum(p.numel() for p in model.parameters())

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kristi1217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants