Hi,
This is because cudnn uses some non-deterministic algorithms (for speed reasons).
You can force it to use deterministic ones by setting torch.backends.cudnn.deterministic = True, but you might see a performance hit.