提交 1187411a 编写于 作者: Y yanghaitao

a

上级 0f221403
...@@ -2948,7 +2948,8 @@ class GeneratorDataset(MappableDataset): ...@@ -2948,7 +2948,8 @@ class GeneratorDataset(MappableDataset):
if rows_from_sampler is None: if rows_from_sampler is None:
return self._dataset_size return self._dataset_size
if self._dataset_size is None:
return None
return min(rows_from_sampler, self._dataset_size) return min(rows_from_sampler, self._dataset_size)
# manually set dataset_size as a temporary solution. # manually set dataset_size as a temporary solution.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册