Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
06916cbc
Commit
06916cbc
authored
Dec 06, 2018
by
Nick Korovaiko
Committed by
Robert Kimball
Dec 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort messages in Matcher to better understand cases where we fail to match (#2179)
* abort messages in matcher.cpp * style fixes
parent
1feb49f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
matcher.cpp
src/ngraph/pattern/matcher.cpp
+21
-0
No files found.
src/ngraph/pattern/matcher.cpp
View file @
06916cbc
...
@@ -69,6 +69,12 @@ namespace ngraph
...
@@ -69,6 +69,12 @@ namespace ngraph
pattern_map
[
label
]
=
graph_node
;
pattern_map
[
label
]
=
graph_node
;
}
}
}
}
if
(
!
is_match
)
{
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
label
->
get_name
();
}
return
is_match
;
return
is_match
;
}
}
...
@@ -131,6 +137,8 @@ namespace ngraph
...
@@ -131,6 +137,8 @@ namespace ngraph
}
}
else
else
{
{
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
any
->
get_name
();
return
false
;
return
false
;
}
}
}
}
...
@@ -157,10 +165,14 @@ namespace ngraph
...
@@ -157,10 +165,14 @@ namespace ngraph
}
}
}
}
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
any
->
get_name
();
return
false
;
return
false
;
}
}
else
else
{
{
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
any
->
get_name
();
return
false
;
return
false
;
}
}
}
}
...
@@ -211,6 +223,8 @@ namespace ngraph
...
@@ -211,6 +223,8 @@ namespace ngraph
match_arguments
(
pattern_node
,
graph_node
,
pattern_map
));
match_arguments
(
pattern_node
,
graph_node
,
pattern_map
));
}
}
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
pattern_node
->
get_name
();
return
abort_match
(
watermark
,
false
);
return
abort_match
(
watermark
,
false
);
}
}
...
@@ -244,6 +258,8 @@ namespace ngraph
...
@@ -244,6 +258,8 @@ namespace ngraph
if
(
args
.
size
()
!=
pattern_args
.
size
())
if
(
args
.
size
()
!=
pattern_args
.
size
())
{
{
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
pattern_node
->
get_name
();
return
false
;
return
false
;
}
}
...
@@ -273,6 +289,9 @@ namespace ngraph
...
@@ -273,6 +289,9 @@ namespace ngraph
return
true
;
return
true
;
}
}
}
}
NGRAPH_DEBUG
<<
"[MATCHER] Aborting at "
<<
graph_node
->
get_name
()
<<
" for pattern "
<<
pattern_node
->
get_name
();
return
false
;
return
false
;
}
}
...
@@ -393,6 +412,8 @@ namespace ngraph
...
@@ -393,6 +412,8 @@ namespace ngraph
if
(
!
matched
)
if
(
!
matched
)
{
{
NGRAPH_DEBUG
<<
"[RecurrentMatcher] Aborting at "
<<
graph
->
get_name
()
<<
" for pattern "
<<
m_pattern
->
get_name
();
m_match_root
.
reset
();
m_match_root
.
reset
();
}
}
...
...
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