title: The result is not fixed after setting random seed in pytorch
body: <pre><code>def setup_seed(seed):
      np.random.seed(seed)
      random.seed(seed)
      torch.manual_seed(seed)  # cpu
      torch.cuda.manual_seed_all(seed)  
      torch.backends.cudnn.deterministic = True  
      torch.backends.cudnn.benchmark = True  
  </code></pre>
  <p>I set random seed when run the code, but I can not get fixed result with pytorch. Besides, I use <strong>batchnorm</strong> in my code. When evaluate and test, I have set <strong>model.eval()</strong>. I cannot figure out the reason for that.</p>