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
27fb77b6
Commit
27fb77b6
authored
Aug 10, 2018
by
Jayaram Bobba
Committed by
Scott Cyphers
Aug 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix allocation size in batchnorm kernel (#1386)
* Fix allocation size in batchnorm kernel * added missing brackets
parent
134b0ae2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
batch_norm.cpp
src/ngraph/runtime/cpu/builder/batch_norm.cpp
+5
-5
No files found.
src/ngraph/runtime/cpu/builder/batch_norm.cpp
View file @
27fb77b6
...
...
@@ -50,8 +50,6 @@ namespace ngraph
const
OP
*
batchnorm
=
static_cast
<
const
OP
*>
(
node
);
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
2
*
args
[
0
].
get_size
()]);
// Kill clang diagnostics bug
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmissing-braces"
...
...
@@ -62,6 +60,8 @@ namespace ngraph
#pragma clang diagnostic pop
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
weight_sizes
[
0
]
+
weight_sizes
[
1
]]);
const
float
ops_scale
=
1.
f
;
const
float
ops_alpha
=
-
0.
f
;
// relu negative slope
const
float
ops_beta
=
0.
f
;
...
...
@@ -265,9 +265,6 @@ namespace ngraph
auto
&
out1_tensor
=
tensor_data
[
out
[
1
].
get_name
()];
auto
&
out2_tensor
=
tensor_data
[
out
[
2
].
get_name
()];
shared_ptr
<
uint8_t
>
stacked_weights
(
new
uint8_t
[
2
*
args
[
0
].
get_size
()]);
shared_ptr
<
uint8_t
>
stacked_dweights
(
new
uint8_t
[
2
*
args
[
0
].
get_size
()]);
// Kill clang diagnostics bug
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmissing-braces"
...
...
@@ -277,6 +274,9 @@ 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
]]);
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