« Minimal Reproducible »

Home Tags About GitHub

Pytorch utils

Published at 2025-06-24
Licensed under CC BY-NC-SA 4.0 langspythonpytorch

print parameters num

sum(p.numel() for p in model.parameters())

def numel(model):
    return sum(p.numel() for p in model.parameters())

« Minimal Reproducible »

Powered by Astro