AWS AMAZON ValueError('sampler is mutually exclusive with shuffle')

Hello,
l run successfully code on my machine. However, when l try to run it on AWS AMAZON l get the following error :

   File "/home/ubuntu/crnn/main_transfer.py", line 87, in <module>
        collate_fn=dataset.alignCollate(imgH=opt.imgH, imgW=opt.imgW, keep_ratio=opt.keep_ratio))
      File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 287, in __init__
        raise ValueError('sampler is mutually exclusive with shuffle')
    ValueError: sampler is mutually exclusive with shuffle

What’s wrong ? thank you ?

this has nothing to do with AWS amazon. It has to do with the pytorch version you are running (locally vs amazon) and the wrong usage of shuffle/sampler options.