提交 65eeaaec authored 作者: Frederic's avatar Frederic

Added an assert to check the type of the inputs.

上级 26dc9fd4
...@@ -165,6 +165,7 @@ class Apply(utils.object2): ...@@ -165,6 +165,7 @@ class Apply(utils.object2):
:returns: an Apply instance with the same op but different outputs. :returns: an Apply instance with the same op but different outputs.
""" """
assert isinstance(inputs, (list, tuple))
remake_node = False remake_node = False
new_inputs = inputs[:] new_inputs = inputs[:]
for i, (curr, new) in enumerate(zip(self.inputs, new_inputs)): for i, (curr, new) in enumerate(zip(self.inputs, new_inputs)):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论