# pytorch/vision SLOC report

> pytorch/vision: 73,853 code lines at commit 268ddfce8e79, counted with tokei-14.0.0 on 2026-10-20. Saved result 8494a68fdbbad4bd8a22cc834506ea864828d07e59d6d2f975969047adb797b8.

pytorch/vision has 73,853 source lines of code out of 93,720 total lines across 374 files, counted from the main ref at commit 268ddfce8e79 by the OctoCounts tokei engine on 2026-10-20. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving pytorch/vision to commit 268ddfce8e79, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 78.8% of all lines, comments represent 7.0%, and the repository averages 197 code lines per file. Python accounts for 81.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 256 | 74,405 | 59,886 | 3,824 | 10,695 |
| C++ | 30 | 6,476 | 5,035 | 588 | 853 |
| CUDA | 7 | 3,961 | 3,321 | 206 | 434 |
| C Header | 33 | 3,082 | 2,514 | 262 | 306 |
| Objective-C++ | 6 | 1,564 | 1,370 | 27 | 167 |
| C | 4 | 1,942 | 1,253 | 434 | 255 |
| CMake | 2 | 203 | 157 | 9 | 37 |
| Shell | 5 | 215 | 141 | 42 | 32 |
| INI | 2 | 98 | 55 | 4 | 39 |
| Batch | 3 | 47 | 38 | 0 | 9 |
| Autoconf | 2 | 55 | 31 | 10 | 14 |
| ReStructuredText | 4 | 33 | 21 | 0 | 12 |
| Forge Config | 1 | 23 | 18 | 1 | 4 |
| TOML | 1 | 18 | 11 | 0 | 7 |
| JSON | 2 | 2 | 2 | 0 | 0 |
| Markdown | 15 | 1,595 | 0 | 1,169 | 426 |
| Plain Text | 1 | 1 | 0 | 1 | 0 |

Top language (Python 81.1%). Generated at 2026-10-20T09:38:31.443069215Z. Canonical report: https://octocounts.com/github/pytorch/vision/commit/268ddfce8e7938226c4ec8ed23fc7b9c46b97316?reportId=8494a68fdbbad4bd8a22cc834506ea864828d07e59d6d2f975969047adb797b8&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/pytorch/vision/commit/268ddfce8e7938226c4ec8ed23fc7b9c46b97316?reportId=8494a68fdbbad4bd8a22cc834506ea864828d07e59d6d2f975969047adb797b8&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does pytorch/vision have?

pytorch/vision has 93,720 total lines, including 73,853 code lines, 6,577 comment lines, and 13,290 blank lines.

### How was the pytorch/vision line count measured?

OctoCounts resolved the public GitHub repository to commit 268ddfce8e79, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for pytorch/vision?

This OctoCounts report was generated from main at commit 268ddfce8e79 on 2026-10-20T09:38:31.443069215Z.

## Similar repository reports

- [mnemosyne-oss/mnemosyne](https://octocounts.com/github/mnemosyne-oss/mnemosyne) — Python, 74,871 code lines
- [beeware/toga](https://octocounts.com/github/beeware/toga) — Python, 72,781 code lines
- [shareui/packit-source](https://octocounts.com/github/shareui/packit-source) — Python, 75,170 code lines
- [yukkcat/chatgpt2api](https://octocounts.com/github/yukkcat/chatgpt2api) — Python, 75,612 code lines
- [LeonChaoX/qinyan-academic-skills](https://octocounts.com/github/LeonChaoX/qinyan-academic-skills) — Python, 71,845 code lines
- [doronz88/pymobiledevice3](https://octocounts.com/github/doronz88/pymobiledevice3) — Python, 75,952 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
