I think this is a good idea but I’m not sure how difficult it would be to implement. A python decorator that behaves like @since could indeed work, I’d expect it to modify a function’s docstring and add a “since vX.X” line.
Please open us a feature request issue on our issue tracker! Issues · pytorch/pytorch · GitHub