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
9b9b184a
Unverified
Commit
9b9b184a
authored
Aug 28, 2019
by
Scott Cyphers
Committed by
GitHub
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings. (#3513)
parent
7b711340
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
quantized_matmul.cpp
src/ngraph/runtime/cpu/builder/quantized_matmul.cpp
+0
-3
cpu_rnn_fusion.cpp
src/ngraph/runtime/cpu/pass/cpu_rnn_fusion.cpp
+2
-2
plaidml_convpool_formatter.cpp
src/ngraph/runtime/plaidml/plaidml_convpool_formatter.cpp
+1
-1
plaidml_logger.cpp
src/ngraph/runtime/plaidml/plaidml_logger.cpp
+1
-1
plaidml_ops_general.cpp
src/ngraph/runtime/plaidml/plaidml_ops_general.cpp
+3
-1
plaidml_ops_group_convolution.cpp
src/ngraph/runtime/plaidml/plaidml_ops_group_convolution.cpp
+0
-1
plaidml_translate.cpp
src/ngraph/runtime/plaidml/plaidml_translate.cpp
+3
-1
No files found.
src/ngraph/runtime/cpu/builder/quantized_matmul.cpp
View file @
9b9b184a
...
@@ -46,8 +46,6 @@ namespace ngraph
...
@@ -46,8 +46,6 @@ namespace ngraph
external_function
->
get_buffer_index
(
args
[
2
].
get_name
());
// scale
external_function
->
get_buffer_index
(
args
[
2
].
get_name
());
// scale
auto
out0_buffer_index
=
external_function
->
get_buffer_index
(
out
[
0
].
get_name
());
auto
out0_buffer_index
=
external_function
->
get_buffer_index
(
out
[
0
].
get_name
());
auto
scales_size
=
shape_size
(
args
[
2
].
get_shape
());
if
(
runtime
::
cpu
::
mkldnn_utils
::
use_mkldnn_kernel
(
node
))
if
(
runtime
::
cpu
::
mkldnn_utils
::
use_mkldnn_kernel
(
node
))
{
{
auto
&
mkldnn_emitter
=
external_function
->
get_mkldnn_emitter
();
auto
&
mkldnn_emitter
=
external_function
->
get_mkldnn_emitter
();
...
@@ -62,7 +60,6 @@ namespace ngraph
...
@@ -62,7 +60,6 @@ namespace ngraph
auto
&
deps
=
mkldnn_emitter
->
get_primitive_deps
(
ip_index
);
auto
&
deps
=
mkldnn_emitter
->
get_primitive_deps
(
ip_index
);
auto
functor
=
[
&
,
auto
functor
=
[
&
,
scales_size
,
ip_desc
,
ip_desc
,
ip_attr
,
ip_attr
,
deps
,
deps
,
...
...
src/ngraph/runtime/cpu/pass/cpu_rnn_fusion.cpp
View file @
9b9b184a
...
@@ -132,7 +132,7 @@ void ngraph::runtime::cpu::pass::LSTMFusion::construct_onnx_lstmcell_fprop()
...
@@ -132,7 +132,7 @@ void ngraph::runtime::cpu::pass::LSTMFusion::construct_onnx_lstmcell_fprop()
auto
weights_ifco
=
std
::
make_shared
<
ngraph
::
op
::
Concat
>
(
auto
weights_ifco
=
std
::
make_shared
<
ngraph
::
op
::
Concat
>
(
NodeVector
{
gate_slices
[
0
],
gate_slices
[
2
],
gate_slices
[
3
],
gate_slices
[
1
]},
0
);
NodeVector
{
gate_slices
[
0
],
gate_slices
[
2
],
gate_slices
[
3
],
gate_slices
[
1
]},
0
);
return
weights_ifco
;
return
std
::
move
(
weights_ifco
)
;
};
};
auto
get_bias_ifco_gate_order
=
auto
get_bias_ifco_gate_order
=
...
@@ -157,7 +157,7 @@ void ngraph::runtime::cpu::pass::LSTMFusion::construct_onnx_lstmcell_fprop()
...
@@ -157,7 +157,7 @@ void ngraph::runtime::cpu::pass::LSTMFusion::construct_onnx_lstmcell_fprop()
auto
new_bias
=
std
::
make_shared
<
ngraph
::
op
::
Concat
>
(
auto
new_bias
=
std
::
make_shared
<
ngraph
::
op
::
Concat
>
(
NodeVector
{
gate_slices
[
0
],
gate_slices
[
2
],
gate_slices
[
3
],
gate_slices
[
1
]},
0
);
NodeVector
{
gate_slices
[
0
],
gate_slices
[
2
],
gate_slices
[
3
],
gate_slices
[
1
]},
0
);
return
new_bias
;
return
std
::
move
(
new_bias
)
;
};
};
auto
W_iofc
=
pattern_map
[
W
];
auto
W_iofc
=
pattern_map
[
W
];
...
...
src/ngraph/runtime/plaidml/plaidml_convpool_formatter.cpp
View file @
9b9b184a
...
@@ -542,7 +542,7 @@ ngraph::runtime::plaidml::builder::UnaryContraction
...
@@ -542,7 +542,7 @@ ngraph::runtime::plaidml::builder::UnaryContraction
{
{
case
OpType
:
:
AvgPool
:
agg_op
=
"+"
;
break
;
case
OpType
:
:
AvgPool
:
agg_op
=
"+"
;
break
;
case
OpType
:
:
MaxPool
:
agg_op
=
">"
;
break
;
case
OpType
:
:
MaxPool
:
agg_op
=
">"
;
break
;
default
:
throw
std
::
runtime_error
(
"Asked for pool contraction for non-pool op"
);
case
OpType
:
:
Conv
:
throw
std
::
runtime_error
(
"Asked for pool contraction for non-pool op"
);
}
}
return
builder
::
UnaryContraction
{
agg_op
}
return
builder
::
UnaryContraction
{
agg_op
}
.
set
((
m_op
==
OpType
::
AvgPool
&&
m_deriv
==
DerivType
::
Data
)
?
I_out_body
()
:
O_out_body
())
.
set
((
m_op
==
OpType
::
AvgPool
&&
m_deriv
==
DerivType
::
Data
)
?
I_out_body
()
:
O_out_body
())
...
...
src/ngraph/runtime/plaidml/plaidml_logger.cpp
View file @
9b9b184a
...
@@ -43,7 +43,7 @@ namespace
...
@@ -43,7 +43,7 @@ namespace
return
;
return
;
case
VAI_LOG_SEVERITY_WARNING
:
NGRAPH_WARN
<<
message
;
return
;
case
VAI_LOG_SEVERITY_WARNING
:
NGRAPH_WARN
<<
message
;
return
;
case
VAI_LOG_SEVERITY_ERROR
:
case
VAI_LOG_SEVERITY_ERROR
:
default
:
NGRAPH_ERR
<<
message
;
return
;
case
VAI_LOG_SEVERITY_FATAL
:
NGRAPH_ERR
<<
message
;
return
;
}
}
}
}
}
}
...
...
src/ngraph/runtime/plaidml/plaidml_ops_general.cpp
View file @
9b9b184a
...
@@ -163,7 +163,9 @@ void ngraph::runtime::plaidml::ImplConstant::Apply()
...
@@ -163,7 +163,9 @@ void ngraph::runtime::plaidml::ImplConstant::Apply()
case
PLAIDML_DATA_FLOAT64
:
case
PLAIDML_DATA_FLOAT64
:
set_output
(
static_cast
<
double
>
(
*
static_cast
<
const
double
*>
(
op
().
get_data_ptr
())));
set_output
(
static_cast
<
double
>
(
*
static_cast
<
const
double
*>
(
op
().
get_data_ptr
())));
return
;
return
;
default
:
break
;
case
PLAIDML_DATA_INVALID
:
case
PLAIDML_DATA_PRNG
:
case
PLAIDML_DATA_INT128
:
return
;
}
}
}
}
...
...
src/ngraph/runtime/plaidml/plaidml_ops_group_convolution.cpp
View file @
9b9b184a
...
@@ -40,7 +40,6 @@ void ngraph::runtime::plaidml::ImplGroupConvolution::Apply()
...
@@ -40,7 +40,6 @@ void ngraph::runtime::plaidml::ImplGroupConvolution::Apply()
const
auto
&
image
=
op_input
(
0
);
const
auto
&
image
=
op_input
(
0
);
const
auto
&
filter
=
op_input
(
1
);
const
auto
&
filter
=
op_input
(
1
);
auto
rank
=
op
().
get_input_shape
(
0
).
size
()
-
2
;
const
auto
&
groups
=
op
().
get_groups
();
const
auto
&
groups
=
op
().
get_groups
();
const
auto
&
padding_above
=
op
().
get_padding_above
();
const
auto
&
padding_above
=
op
().
get_padding_above
();
const
auto
&
padding_below
=
op
().
get_padding_below
();
const
auto
&
padding_below
=
op
().
get_padding_below
();
...
...
src/ngraph/runtime/plaidml/plaidml_translate.cpp
View file @
9b9b184a
...
@@ -117,7 +117,9 @@ std::string ngraph::runtime::plaidml::tile_converter(const std::string& tensor_n
...
@@ -117,7 +117,9 @@ std::string ngraph::runtime::plaidml::tile_converter(const std::string& tensor_n
case
PLAIDML_DATA_FLOAT16
:
return
"as_float("
+
tensor_name
+
", 16)"
;
case
PLAIDML_DATA_FLOAT16
:
return
"as_float("
+
tensor_name
+
", 16)"
;
case
PLAIDML_DATA_FLOAT32
:
return
"as_float("
+
tensor_name
+
", 32)"
;
case
PLAIDML_DATA_FLOAT32
:
return
"as_float("
+
tensor_name
+
", 32)"
;
case
PLAIDML_DATA_FLOAT64
:
return
"as_float("
+
tensor_name
+
", 64)"
;
case
PLAIDML_DATA_FLOAT64
:
return
"as_float("
+
tensor_name
+
", 64)"
;
default
:
throw
std
::
runtime_error
{
"Unsupported type conversion"
};
case
PLAIDML_DATA_INVALID
:
case
PLAIDML_DATA_INT128
:
case
PLAIDML_DATA_PRNG
:
throw
std
::
runtime_error
{
"Unsupported type conversion"
};
}
}
}
}
...
...
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