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
a8d206b3
Unverified
Commit
a8d206b3
authored
Sep 13, 2019
by
Scott Cyphers
Committed by
GitHub
Sep 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix klocwork issues. (#3619)
parent
67483af0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
lrn.cpp
src/ngraph/op/lrn.cpp
+1
-2
softmax.cpp
src/ngraph/op/softmax.cpp
+2
-2
batch_norm.cpp
src/ngraph/runtime/cpu/builder/batch_norm.cpp
+1
-0
pattern.cpp
test/pattern.cpp
+1
-1
No files found.
src/ngraph/op/lrn.cpp
View file @
a8d206b3
...
...
@@ -85,8 +85,7 @@ void op::LRN::validate_and_infer_types()
NODE_VALIDATION_CHECK
(
this
,
static_cast
<
size_t
>
(
axes_shape
[
0
])
>=
0
&&
static_cast
<
size_t
>
(
axes_shape
[
0
])
<=
static_cast
<
size_t
>
(
input_shape_rank
),
static_cast
<
size_t
>
(
axes_shape
[
0
])
<=
static_cast
<
size_t
>
(
input_shape_rank
),
"Number of elements of axes must be >= 0 and <= argument rank (axes_shape[0]: "
,
axes_shape
[
0
],
")."
);
...
...
src/ngraph/op/softmax.cpp
View file @
a8d206b3
...
...
@@ -46,7 +46,7 @@ op::v0::Softmax::Softmax(const Output<Node>& arg, const AxisSet& axes)
for
(
auto
axis
:
m_axes
)
{
NODE_VALIDATION_CHECK
(
this
,
axis
>=
0
&&
axis
<
static_cast
<
size_t
>
(
input_shape
.
rank
()),
axis
<
static_cast
<
size_t
>
(
input_shape
.
rank
()),
"Reduction axis ("
,
axis
,
") is out of bounds (argument shape: "
,
...
...
@@ -122,7 +122,7 @@ op::v1::Softmax::Softmax(const Output<Node>& arg, const size_t axis)
input_shape
,
")."
);
NODE_VALIDATION_CHECK
(
this
,
axis
>=
0
&&
axis
<
static_cast
<
size_t
>
(
input_shape
.
rank
()),
axis
<
static_cast
<
size_t
>
(
input_shape
.
rank
()),
"Reduction axis ("
,
axis
,
") is out of bounds (argument shape: "
,
...
...
src/ngraph/runtime/cpu/builder/batch_norm.cpp
View file @
a8d206b3
...
...
@@ -443,6 +443,7 @@ namespace ngraph
const
ngraph
::
op
::
BatchNormTrainingBackprop
*
batchnorm
=
static_cast
<
const
ngraph
::
op
::
BatchNormTrainingBackprop
*>
(
node
);
auto
eps
=
batchnorm
->
get_eps_value
();
(
void
)
eps
;
// Use depends on mkl-dnn version
QUERY_SCRATCHPAD_3ARGS
(
batchnorm_backward
,
batchnorm_desc
,
input_desc
,
eps
);
auto
functor
=
[
&
,
...
...
test/pattern.cpp
View file @
a8d206b3
...
...
@@ -144,7 +144,7 @@ public:
size_t
const_node_index
=
m
.
get_match_root
()
->
get_arguments
().
at
(
0
)
==
pattern_map
[
pattern
];
auto
const_node
=
dynam
ic_pointer_cast
<
op
::
Constant
>
(
auto
const_node
=
stat
ic_pointer_cast
<
op
::
Constant
>
(
m
.
get_match_root
()
->
get_arguments
().
at
(
const_node_index
));
auto
second_node
=
m
.
get_match_root
()
->
get_arguments
().
at
(
const_node_index
);
NGRAPH_DEBUG
<<
"second_node = "
<<
second_node
->
get_name
()
...
...
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