提交 7a17f72f 编写于 作者: S stephon

fix seed=0 bug

上级 cb96c82b
......@@ -61,7 +61,7 @@ class Engine(object):
# set seed
seed = self.config["Global"].get("seed", False)
if seed:
if seed or seed == 0:
assert isinstance(seed, int), "The 'seed' must be a integer!"
paddle.seed(seed)
np.random.seed(seed)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册