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
9e885d05
Commit
9e885d05
authored
Dec 05, 2018
by
Pruthvi
Committed by
Robert Kimball
Dec 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix address sanitizer issue in batchnorm fprop and bprop kernel (#2159)
parent
d4f8bfdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
batch_norm.cpp
src/ngraph/runtime/cpu/builder/batch_norm.cpp
+6
-4
No files found.
src/ngraph/runtime/cpu/builder/batch_norm.cpp
View file @
9e885d05
...
...
@@ -60,7 +60,8 @@ namespace ngraph
#pragma clang diagnostic pop
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]]);
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]],
std
::
default_delete
<
uint8_t
[]
>
());
const
float
ops_scale
=
1.
f
;
const
float
ops_alpha
=
-
0.
f
;
// relu negative slope
...
...
@@ -319,9 +320,10 @@ namespace ngraph
args
[
1
].
get_size
()
*
args
[
1
].
get_element_type
().
size
()};
#pragma clang diagnostic pop
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]]);
shared_ptr
<
uint8_t
>
stacked_dweights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]]);
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]],
std
::
default_delete
<
uint8_t
[]
>
());
shared_ptr
<
uint8_t
>
stacked_dweights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]],
std
::
default_delete
<
uint8_t
[]
>
());
auto
&
mkldnn_emitter
=
external_function
->
get_mkldnn_emitter
();
auto
weights_shape
=
Shape
{
2
,
args
[
0
].
get_size
()};
...
...
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