提交 1a969e3d authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Create FunctionGraph.inputs before attaching Features

上级 e53b9b32
......@@ -143,6 +143,7 @@ class FunctionGraph(MetaObject):
# outputs even if they aren't used in the graph.
self.variables = set()
self.inputs = []
self.outputs = list(outputs)
self.clients = {}
......@@ -151,7 +152,6 @@ class FunctionGraph(MetaObject):
self.attach_feature(ReplaceValidate())
self.inputs = []
for in_var in inputs:
if in_var.owner is not None:
raise ValueError(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论