提交 31073180 编写于 作者: M minqiyang

Remove the overfix of next in unittest

上级 9fc13fde
...@@ -30,12 +30,12 @@ class Memory(object): ...@@ -30,12 +30,12 @@ class Memory(object):
assert val.dtype == self.ex.dtype assert val.dtype == self.ex.dtype
self.cur = val self.cur = val
def __next__(self): def next(self):
self.ex = self.cur self.ex = self.cur
self.cur = None self.cur = None
def __next__(self): def __next__(self):
next(self) self.next()
def reset(self): def reset(self):
self.ex = numpy.zeros(shape=self.ex.shape, dtype=self.ex.dtype) self.ex = numpy.zeros(shape=self.ex.shape, dtype=self.ex.dtype)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册