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
2d8b2b4b
Unverified
Commit
2d8b2b4b
authored
5 years ago
by
Scott Cyphers
Committed by
GitHub
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix klocwork issues. (#3620)
parent
a97e26e1
No related merge requests found
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 @
2d8b2b4b
...
...
@@ -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
],
")."
);
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/op/softmax.cpp
View file @
2d8b2b4b
...
...
@@ -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: "
,
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/cpu/builder/batch_norm.cpp
View file @
2d8b2b4b
...
...
@@ -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
=
[
&
,
...
...
This diff is collapsed.
Click to expand it.
test/pattern.cpp
View file @
2d8b2b4b
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
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