提交 f966774b authored 作者: Frederic's avatar Frederic

Remove assert in internal function. They are only called by other internal fct…

Remove assert in internal function. They are only called by other internal fct and will fail later anyway. expect small speed up.
上级 5857972f
......@@ -396,10 +396,6 @@ class FunctionGraph(utils.object2):
outputs are still used, we will keep the node in the graph.
"""
if apply_node not in self.apply_nodes:
raise Exception(
"%s does not belong to this FunctionGraph." % apply_node)
assert apply_node.fgraph is self
# If apply_node's outputs have no clients, removes it from the graph
# and recursively tries to prune its inputs. If at least one
# of the op's outputs is an output to the graph or has a client
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论