# pytorch/tensordict SLOC report

> As of 2026-10-22 (commit 063429e70b2f), pytorch/tensordict contains 107,904 total lines: 90,128 code, 8,439 comments, 9,337 blank, across 124 files in 6 languages (top: Python 99.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

pytorch/tensordict has 90,128 source lines of code out of 107,904 total lines across 124 files, counted from the main ref at commit 063429e70b2f by the OctoCounts tokei engine on 2026-10-22. 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/tensordict to commit 063429e70b2f, 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 83.5% of all lines, comments represent 7.8%, and the repository averages 727 code lines per file. Python accounts for 99.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 111 | 106,555 | 89,933 | 7,512 | 9,110 |
| TOML | 1 | 186 | 137 | 32 | 17 |
| INI | 2 | 69 | 50 | 4 | 15 |
| Autoconf | 1 | 10 | 8 | 0 | 2 |
| Markdown | 7 | 1,079 | 0 | 886 | 193 |
| Plain Text | 2 | 5 | 0 | 5 | 0 |

Top language (Python 99.8%). Generated at 2026-10-22T06:58:27.155066967+00:00. Canonical report: https://octocounts.com/github/pytorch/tensordict

## Reproduce this report

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

## Report FAQ

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

pytorch/tensordict has 107,904 total lines, including 90,128 code lines, 8,439 comment lines, and 9,337 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 063429e70b2f, 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/tensordict?

This OctoCounts report was generated from main at commit 063429e70b2f on 2026-10-22T06:58:27.155066967+00:00.

## Similar repository reports

- [the-momentum/open-wearables](https://octocounts.com/github/the-momentum/open-wearables) — Python, 90,060 code lines
- [AsahiLinux/m1n1](https://octocounts.com/github/AsahiLinux/m1n1) — Python, 89,738 code lines
- [PrefectHQ/fastmcp](https://octocounts.com/github/PrefectHQ/fastmcp) — Python, 88,942 code lines
- [TNT-Likely/PanWatch](https://octocounts.com/github/TNT-Likely/PanWatch) — Python, 88,451 code lines
- [docling-project/docling](https://octocounts.com/github/docling-project/docling) — Python, 91,865 code lines
- [open-energy-transition/open-tyndp](https://octocounts.com/github/open-energy-transition/open-tyndp) — Python, 91,955 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)
