How to find out version when certain `pytorch` feature first became available

Hi, how can I find when a particular pytorch feature was added?
For example, I want to know in which version torch.bucketize first became available in the API so that if we use it in our code, what version restriction we need to apply. What is the easiest way to find this out?

You could use the release notes and search for this particular method (which can be directly found as it was apparently added in 1.6 :wink: ).
Alternatively, you could also check out the docs and search for this method in different versions (top left corner).
If that also doesn’t help, search through the source code (grep -r or in GitHub) and use git blame to find the PR, where it was added.

1 Like