提交 2c43419d 编写于 作者: T Tomasz Patejko

MKLDNN conv + elementwise_add fusion: comment explaining CorrectGraphEdges added

上级 8fb29b2c
......@@ -21,6 +21,10 @@ namespace paddle {
namespace framework {
namespace ir {
namespace {
// The function keeps the graph consistent by replacing
// a node 'from' in the set of inputs nodes
// of the visited node by a node 'to'.
void CorrectGraphEdges(Graph* graph, Node* from, Node* to) {
for (auto& node : GraphTraits::DFS(*graph)) {
auto from_in_inputs =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册