How many lines of code (LOC) in pytorch?

Hi, guys.

I want to calculate how many lines of python code (I mean the code in .py file) in a specific pytorch version.

(Exclude blank lines, comments, docstrings, etc. that will not be executed)
Is there any way to count easily?

Thx in advance :smiley:

You could clone the repository, filter for the needed files, and coins the lines in them as described here.

1 Like

Got it, really thank u :smiley: