Check this post:

  
    
    
    Differences in network prediction output for the same input 
  
  
    How small are the differences? 
Is it floating point precision-level differences?
  


Set number of thread will do the trick: torch.set_num_threads(1)