Use_deterministic_algorithms

Hi, I use pytorch 1.7.1+cu110. I would like to use deterministic algorithm for debugging purposes and to increase reproducibility of my predictions. But when I call the algorithm, PyTorch complains that torch has no such attribute. Is it possible that this attribute was introduced after the version I currently use?
See below:

import torch
torch.use_deterministic_algorithms(True)

module ‘torch’ has no attribute ‘use_deterministic_algorithms’

Yes, checking the documentation it looks like it was introduce in PyTorch 1.8. This is the documentation for your release: Reproducibility — PyTorch 1.7.1 documentation

It uses

torch.set_deterministic()

to ensure you are running deterministic algorithms when available.

Thank you. Very helpful.