dataset reset

This commit is contained in:
Dun Liang 2020-12-22 17:16:29 +08:00
parent 1b6970f7dc
commit 8f425206b9
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.2.2.9'
__version__ = '1.2.2.10'
from . import lock
with lock.lock_scope():
ori_int = int

View File

@ -114,6 +114,7 @@ class Dataset(object):
for k,v in kw.items():
assert hasattr(self, k), k
setattr(self, k, v)
self.reset()
return self
def to_jittor(self, batch):