Thanks  for your reply.
I just have one more question, what’s the difference or just said as final performance ：) ，between the two methods?
For my experience, the WeightedRandomSampler will be a bit better , but i could not make sure the results.