提交 9274daec 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!1610 fix subset random sampler error

Merge pull request !1610 from yanghaitao/yht_subsetrandomsampler_r0.3
......@@ -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.
先完成此消息的编辑!
想要评论请 注册