提交 1bdbcc52 authored 作者: Frederic's avatar Frederic

Doc how local opt can replace arbitrary node in the graph.

上级 8ab22a0c
......@@ -997,3 +997,11 @@ To understand this profile here is some explanation of how optimization work:
* Optimization with that pattern `local_op_sink` is the opposite of
`lift`.
* Local optimizer can replace any arbitrary node in the graph, not
only the node it received as input. For this, it must return a
dict. The keys being nodes to replace and the
values being the corresponding replacement.
This is useful to replace a client of the node received as
parameter.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论