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
14d74e83
Commit
14d74e83
authored
Oct 12, 2017
by
Adam Procter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings
parent
5b405c16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
dump_sorted.cpp
src/ngraph/pass/dump_sorted.cpp
+1
-1
external_function.cpp
src/ngraph/runtime/ngvm/external_function.cpp
+3
-1
No files found.
src/ngraph/pass/dump_sorted.cpp
View file @
14d74e83
...
...
@@ -35,7 +35,7 @@ bool pass::DumpSorted::run_on_module(vector<shared_ptr<ngraph::Function>>& funct
{
for
(
shared_ptr
<
Function
>
f
:
functions
)
{
for
(
const
shared_ptr
<
Node
>
node
:
f
->
get_ordered_ops
())
for
(
const
shared_ptr
<
Node
>
&
node
:
f
->
get_ordered_ops
())
{
out
<<
node
->
get_name
()
<<
"("
;
vector
<
string
>
inputs
;
...
...
src/ngraph/runtime/ngvm/external_function.cpp
View file @
14d74e83
...
...
@@ -1016,7 +1016,9 @@ void ExternalFunction::compile(FunctionMap& function_map)
auto
op_map
=
get_op_map
();
for
(
shared_ptr
<
Node
>
node
:
m_function
->
get_ordered_ops
())
{
auto
handler_it
=
op_map
.
find
(
type_index
(
typeid
(
*
node
)));
auto
&
n
=
*
node
;
// Work around a compiler warning (*node inside typeid may have effects
// with shared pointers, which is fine here but clang doesn't like it.)
auto
handler_it
=
op_map
.
find
(
type_index
(
typeid
(
n
)));
if
(
handler_it
==
op_map
.
end
())
{
throw
ngraph_error
(
"Unhandled op during code generation"
);
...
...
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