DistributedSampler — Expected a ‘cuda’ device type for generator when generating indices

后端 未结 0 1993
刺人心
刺人心 2020-11-21 15:09

Performing distributed training, I have the following code like this:

training_sampler = DistributedSampler(training_set, num_replicas=2, rank=0)
training_gen         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题