提交 a379c668 编写于 作者: Y yanghaitao

fix subsetrandomsampler

上级 0f221403
......@@ -483,7 +483,7 @@ class SubsetRandomSampler(BuiltinSampler):
def get_dataset_size(self):
return len(indices)
return len(self.indices)
class WeightedRandomSampler(BuiltinSampler):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册