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
90ca8c5c
Commit
90ca8c5c
authored
Sep 21, 2017
by
Yixing Lao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename logging macros
parent
0c76eb87
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
ngraph.cpp
graveyard/ngraph.cpp
+1
-1
log.hpp
src/ngraph/log.hpp
+3
-3
ngraph.cpp
test/ngraph.cpp
+3
-3
pass_liveness.cpp
test/pass_liveness.cpp
+2
-2
topological_sort.cpp
test/topological_sort.cpp
+3
-3
No files found.
graveyard/ngraph.cpp
View file @
90ca8c5c
...
...
@@ -26,7 +26,7 @@ void destroy_ngraph_object(NGraph* pObj)
void
NGraph
::
add_params
(
const
std
::
vector
<
std
::
string
>&
paramList
)
{
INFO
<<
"Adding parameters"
;
NGRAPH_
INFO
<<
"Adding parameters"
;
m_params
.
insert
(
m_params
.
end
(),
paramList
.
begin
(),
paramList
.
end
());
}
...
...
src/ngraph/log.hpp
View file @
90ca8c5c
...
...
@@ -88,19 +88,19 @@ namespace nervana
static
std
::
deque
<
std
::
string
>
queue
;
};
#define
ERR
\
#define
NGRAPH_ERR
\
nervana::log_helper(nervana::LOG_TYPE::_LOG_TYPE_ERROR, \
nervana::get_file_name(__FILE__), \
__LINE__, \
__PRETTY_FUNCTION__) \
.stream()
#define
WARN
\
#define
NGRAPH_WARN
\
nervana::log_helper(nervana::LOG_TYPE::_LOG_TYPE_WARNING, \
nervana::get_file_name(__FILE__), \
__LINE__, \
__PRETTY_FUNCTION__) \
.stream()
#define
INFO
\
#define
NGRAPH_INFO
\
nervana::log_helper(nervana::LOG_TYPE::_LOG_TYPE_INFO, \
nervana::get_file_name(__FILE__), \
__LINE__, \
...
...
test/ngraph.cpp
View file @
90ca8c5c
...
...
@@ -48,9 +48,9 @@ TEST(NGraph, loadTest)
NGraph
*
nGraphObj
=
createPfn
();
INFO
<<
"Call a method on the Object"
;
NGRAPH_
INFO
<<
"Call a method on the Object"
;
ASSERT_EQ
(
"NGraph Implementation Object"
,
nGraphObj
->
get_name
());
INFO
<<
"Object Name: "
<<
nGraphObj
->
get_name
();
NGRAPH_
INFO
<<
"Object Name: "
<<
nGraphObj
->
get_name
();
// Add some parameters
const
vector
<
string
>
TEST_PARAMS
=
{
"param-1"
,
"param-2"
,
"param-3"
};
...
...
@@ -65,7 +65,7 @@ TEST(NGraph, loadTest)
EXPECT_EQ
(
TEST_PARAMS
[
i
],
storedParams
[
i
]);
}
INFO
<<
"Destroy the NGraph Object"
;
NGRAPH_
INFO
<<
"Destroy the NGraph Object"
;
destroyPfn
(
nGraphObj
);
dlclose
(
ngraphImplLib
);
...
...
test/pass_liveness.cpp
View file @
90ca8c5c
...
...
@@ -62,10 +62,10 @@ TEST(pass, liveness)
// for (const Node* node : sorted)
// {
// INFO << *node;
//
NGRAPH_
INFO << *node;
// for (const descriptor::Tensor* tensor : node->liveness_live_list)
// {
// INFO << " " << *tensor;
//
NGRAPH_
INFO << " " << *tensor;
// }
// }
...
...
test/topological_sort.cpp
View file @
90ca8c5c
...
...
@@ -112,17 +112,17 @@ TEST(benchmark, topological_sort)
ts
.
run_on_tree
(
result
);
auto
sorted_list
=
ts
.
get_call_graph
();
timer
.
stop
();
INFO
<<
"topological sort took "
<<
timer
.
get_milliseconds
()
<<
"ms"
;
NGRAPH_
INFO
<<
"topological sort took "
<<
timer
.
get_milliseconds
()
<<
"ms"
;
size_t
node_count
=
0
;
traverse_nodes
(
result
,
[
&
](
const
Node
*
node
)
{
node_count
++
;
});
INFO
<<
"node count "
<<
node_count
;
NGRAPH_
INFO
<<
"node count "
<<
node_count
;
timer
.
start
();
ngraph
::
free_nodes
(
result
);
timer
.
stop
();
INFO
<<
"delete nodes took "
<<
timer
.
get_milliseconds
()
<<
"ms"
;
NGRAPH_
INFO
<<
"delete nodes took "
<<
timer
.
get_milliseconds
()
<<
"ms"
;
}
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