提交 2514d77e authored 作者: Olivier Breuleux's avatar Olivier Breuleux

fixed small env bug

上级 d9e50f16
......@@ -90,7 +90,7 @@ class Env(graph.Graph):
# e.g. z for inputs=(x, y) and outputs=(x + (y - z),)
# We initialize them to the set of outputs; if an output depends on an input,
# it will be removed from the set of orphans.
self._orphans = set(outputs)
self._orphans = set(outputs).difference(inputs)
for feature_class in uniq_features(features):
self.add_feature(feature_class, False)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论