Hi,
I think what you want is to pass unbiased=False to the var function in pytorch: torch.var — PyTorch 1.8.1 documentation 1
By default, pytorch compute the unbiased variance but I think Tensorflow computes the biased version.