News
Docstring: Package PyTorch’s set of document conventions that no one explains clearly into a Skill
1 min read
Source: aixq.cc
Writing docstrings is a basic skill for programmers. Add triple quotes to the function to explain what it does, what its parameters are, and what it returns. Anyone can do this, and ChatGPT can do it for me. So why does PyTorch officially create a skill to talk about it? The first time I came across this pytorch/docstring on smithery.ai, I had the same reaction: Do you need to teach me how to write comments? But after reading the entire SKILL.md, I discovered a fact that I had ignored before. This skill does not teach how to write docstrings, but how to write docstrings for PyTorch. These are two different things. PyTorch docst