sent-conv-torch icon indicating copy to clipboard operation
sent-conv-torch copied to clipboard

Fixing RNG seed

Open shashankg7 opened this issue 9 years ago • 2 comments

Hi, I am using this code as benchmark in one of my papers. Now I need to fix the random seed in order to do so. I am trying the seed flag, - '-seed 42'. But even with this flag I am getting different results each time.

Can you guide me on this?

Thanks

shashankg7 avatar Oct 22 '16 11:10 shashankg7

Are you using cudnn? This seems to be a known issue with convolution: https://github.com/soumith/cudnn.torch/issues/92 I haven't found a great way to get around the problem myself.

jeffreyling avatar Oct 22 '16 15:10 jeffreyling

I am using cudnn. So the only way to get around this problem is to use cpu instead of gpu? This is sad.

shashankg7 avatar Oct 22 '16 15:10 shashankg7