docstring
A contributor skill in the PyTorch repository that sets the house style for docstrings on PyTorch functions and methods, drawn from the tensor docs and the neural network functional module.
What the skill teaches
A contributor skill in the PyTorch repository that sets the house style for docstrings on PyTorch functions and methods, drawn from the tensor docs and the neural network functional module. Docstrings are raw strings in Sphinx reStructuredText with a signature line, a short description, math blocks and tensor shapes, cross-references, notes and warnings, an Args section with types and defaults, return values and examples with interpreter prompts. It explains how docstrings are attached to C-bound functions, tensor methods, in-place variants and aliases through PyTorch's own helpers, how to reuse shared argument text, and ends with a short checklist.
Capabilities
Not stated in its documentation
About
- Publisher
- PyTorch
- Tool
- Documentation
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Documentation | |
| Publisher | PyTorch | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 2026105,390 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from PyTorch
16 skills
- ci-metrics (Skill)
- fix-issue (Skill)
- ghstack-ci (Skill)
- aoti-debug (Skill)
- deprecate-feature (Skill)
- metal-kernel (Skill)
Also listed under: Documentation
Sources
- GitHub repositorygithub.com/pytorch/pytorch · Backs: Publisher, ActivityNov 11, 2026
- Skill file (SKILL.md)github.com/pytorch/pytorch · Backs: Includes scripts, LicenceNov 10, 2026
- Folder in the repository (docstring)github.com/pytorch/pytorch · Backs: Includes scriptsNov 10, 2026