Looking at Releases · pytorch/pytorch · GitHub, it doesn’t look like this PR was in 1.7.1.  So, you could try master.  Or, you could write your own function which disables fake_quants (for example, by copying the code after the PR above) and call that, without having to update your PyTorch installation.