提交 71b0ba1b authored 作者: Frederic's avatar Frederic

When we copy a function, the new maker receive a graph that can contain inplace…

When we copy a function, the new maker receive a graph that can contain inplace as this is the optimized graph.
上级 bbbac983
......@@ -711,7 +711,10 @@ class Function(object):
mode=maker.mode, profile=profile,
on_unused_input=maker.on_unused_input,
function_builder=maker.function_builder,
accept_inplace=maker.accept_inplace
# As this is an optimized graph, it
# can contain inplace. DebugMode check
# that.
accept_inplace=True,
).create(input_storage,
storage_map=new_storage_map)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论