Solved by albanD in post #5 
              
              
                Hi, 
I guess you are using cudnn? If so the default maxpooling algorithm is known not to be deterministic. 
You can use torch.backends.cudnn.deterministic = True to force it to use a deterministic algorithm (at a performance cost).