提交 70e4e579 authored 作者: Virgile Andreani's avatar Virgile Andreani 提交者: Ricardo Vieira

Make non-strict zip strict in scalar/loop.py

上级 c15e7aaa
...@@ -93,7 +93,7 @@ class ScalarLoop(ScalarInnerGraphOp): ...@@ -93,7 +93,7 @@ class ScalarLoop(ScalarInnerGraphOp):
) )
else: else:
update = outputs update = outputs
for i, u in zip(init, update, strict=False): for i, u in zip(init[: len(update)], update, strict=True):
if i.type != u.type: if i.type != u.type:
raise TypeError( raise TypeError(
"Init and update types must be the same: " "Init and update types must be the same: "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论