Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
531a48d6
Commit
531a48d6
authored
Nov 13, 2018
by
雾雨魔理沙
Committed by
Tianqi Chen
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error in fuse_ops.cc (#2098)
parent
0c3c29e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/relay/pass/fuse_ops.cc
+4
-4
No files found.
src/relay/pass/fuse_ops.cc
View file @
531a48d6
...
@@ -322,7 +322,7 @@ class DominatorTree {
...
@@ -322,7 +322,7 @@ class DominatorTree {
* The combined edge pattern across all the parents.
* The combined edge pattern across all the parents.
* \return The least common acenstor of thw two.
* \return The least common acenstor of thw two.
*/
*/
static
Node
*
LeastCommonA
cen
stor
(
static
Node
*
LeastCommonA
nce
stor
(
Node
*
lhs
,
Node
*
lhs
,
Node
*
rhs
,
Node
*
rhs
,
OpPatternKind
*
edge_pattern
)
{
OpPatternKind
*
edge_pattern
)
{
...
@@ -338,12 +338,12 @@ class DominatorTree {
...
@@ -338,12 +338,12 @@ class DominatorTree {
edge_pattern
[
0
],
lhs
->
pattern
);
edge_pattern
[
0
],
lhs
->
pattern
);
lhs
=
lhs
->
parent
;
lhs
=
lhs
->
parent
;
}
else
{
}
else
{
lhs
=
lhs
->
parent
;
rhs
=
rhs
->
parent
;
edge_pattern
[
0
]
=
CombinePattern
(
edge_pattern
[
0
]
=
CombinePattern
(
edge_pattern
[
0
],
lhs
->
pattern
);
edge_pattern
[
0
],
lhs
->
pattern
);
edge_pattern
[
0
]
=
CombinePattern
(
edge_pattern
[
0
]
=
CombinePattern
(
edge_pattern
[
0
],
rhs
->
pattern
);
edge_pattern
[
0
],
rhs
->
pattern
);
lhs
=
lhs
->
parent
;
rhs
=
rhs
->
parent
;
}
}
}
}
return
lhs
;
return
lhs
;
...
@@ -374,7 +374,7 @@ DominatorTree DominatorTree::PostDom(common::Arena* arena,
...
@@ -374,7 +374,7 @@ DominatorTree DominatorTree::PostDom(common::Arena* arena,
Node
*
onode
=
tree
.
nodes
[
oindex
];
Node
*
onode
=
tree
.
nodes
[
oindex
];
CHECK
(
onode
!=
nullptr
);
CHECK
(
onode
!=
nullptr
);
if
(
parent
!=
nullptr
)
{
if
(
parent
!=
nullptr
)
{
parent
=
LeastCommonA
cen
stor
(
parent
,
onode
,
&
pattern
);
parent
=
LeastCommonA
nce
stor
(
parent
,
onode
,
&
pattern
);
}
else
{
}
else
{
parent
=
onode
;
parent
=
onode
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment