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
f813fb6d
Commit
f813fb6d
authored
May 13, 2019
by
Robert Kimball
Committed by
Scott Cyphers
May 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building on centos with gcc 4.8.5 (#2913)
parent
1147b018
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
normalize.cpp
src/ngraph/op/fused/normalize.cpp
+5
-6
broadcasting.hpp
src/ngraph/op/util/broadcasting.hpp
+1
-1
No files found.
src/ngraph/op/fused/normalize.cpp
View file @
f813fb6d
...
...
@@ -46,8 +46,8 @@ void op::Normalize::pre_validate_and_infer_types()
if
(
data_pshape
.
is_static
()
&&
scale_pshape
.
is_static
())
{
const
auto
&
data_shape
{
data_pshape
.
to_shape
()};
const
auto
&
scale_shape
{
scale_pshape
.
to_shape
()};
const
Shape
data_shape
{
data_pshape
.
to_shape
()};
const
Shape
scale_shape
{
scale_pshape
.
to_shape
()};
// Input data must be 2, 3 or 4D tensor.
NODE_VALIDATION_CHECK
(
this
,
...
...
@@ -86,10 +86,9 @@ void op::Normalize::pre_validate_and_infer_types()
NodeVector
op
::
Normalize
::
decompose_op
()
const
{
const
auto
input_node
{
get_argument
(
0
)};
const
auto
&
input_shape
{
input_node
->
get_shape
()};
shared_ptr
<
Node
>
data
{
get_argument
(
0
)};
const
Shape
input_shape
{
data
->
get_shape
()};
auto
data
{
input_node
};
// Reshape to 4D tensor.
if
(
input_shape
.
size
()
!=
4
)
{
...
...
@@ -110,7 +109,7 @@ NodeVector op::Normalize::decompose_op() const
shared_ptr
<
Node
>
norm
=
builder
::
l2_norm
(
data
,
reduction_axes
,
m_eps
);
norm
=
make_broadcast_node
(
norm
,
data
->
get_shape
(),
0
);
auto
scale_node
{
get_argument
(
1
)};
shared_ptr
<
Node
>
scale_node
{
get_argument
(
1
)};
// Broadcast scale to data tensor shape.
if
(
m_channel_shared
)
...
...
src/ngraph/op/util/broadcasting.hpp
View file @
f813fb6d
...
...
@@ -117,7 +117,7 @@ namespace ngraph
inline
std
::
shared_ptr
<
ngraph
::
Node
>
make_broadcast_node
(
const
std
::
shared_ptr
<
ngraph
::
Node
>&
node
,
ngraph
::
Shape
new_shape
,
const
ngraph
::
Shape
&
new_shape
,
std
::
size_t
start_match_axis
)
{
return
std
::
make_shared
<
ngraph
::
op
::
Broadcast
>
(
...
...
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