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
6ed9e990
Unverified
Commit
6ed9e990
authored
Nov 18, 2019
by
Scott Cyphers
Committed by
GitHub
Nov 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into ayzhuang/cf_gather
parents
37849092
f6a404eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
4 deletions
+22
-4
external_gtest.cmake
cmake/external_gtest.cmake
+2
-0
gelu.cpp
src/ngraph/op/fused/gelu.cpp
+12
-0
group_conv.cpp
src/ngraph/op/fused/group_conv.cpp
+4
-0
layer_norm.cpp
src/ngraph/op/fused/layer_norm.cpp
+2
-2
layer_norm.hpp
src/ngraph/op/fused/layer_norm.hpp
+2
-2
No files found.
cmake/external_gtest.cmake
View file @
6ed9e990
...
...
@@ -60,6 +60,8 @@ ExternalProject_Add(
${
GTEST_CMAKE_ARGS
}
BINARY_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/gtest/build"
EXCLUDE_FROM_ALL TRUE
BUILD_BYPRODUCTS
${
CMAKE_BINARY_DIR
}
/ngraph/gtest/build/googlemock/gtest/libgtest.a
BUILD_BYPRODUCTS
${
CMAKE_BINARY_DIR
}
/ngraph/gtest/build/googlemock/libgmock.a
)
#------------------------------------------------------------------------------
...
...
src/ngraph/op/fused/gelu.cpp
View file @
6ed9e990
...
...
@@ -66,12 +66,18 @@ shared_ptr<Node> op::Gelu::copy_with_new_args(const NodeVector& new_args) const
void
op
::
Gelu
::
pre_validate_and_infer_types
()
{
element
::
Type
input_element_type
=
get_input_element_type
(
0
);
PartialShape
input_pshape
=
get_input_partial_shape
(
0
);
NODE_VALIDATION_CHECK
(
this
,
input_element_type
.
is_dynamic
()
||
input_element_type
.
is_real
(),
"Argument element type must be f16, bf16, f32, f64 or dynamic (got "
,
input_element_type
,
")."
);
if
(
input_pshape
.
is_dynamic
())
{
set_output_type
(
0
,
input_element_type
,
input_pshape
);
}
}
void
op
::
Gelu
::
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
...
...
@@ -94,12 +100,18 @@ op::GeluBackpropFactor::GeluBackpropFactor(const Output<Node>& x)
void
op
::
GeluBackpropFactor
::
pre_validate_and_infer_types
()
{
element
::
Type
input_element_type
=
get_input_element_type
(
0
);
PartialShape
input_pshape
=
get_input_partial_shape
(
0
);
NODE_VALIDATION_CHECK
(
this
,
input_element_type
.
is_dynamic
()
||
input_element_type
.
is_real
(),
"Argument element type must be f16, bf16, f32, f64 or dynamic (got "
,
input_element_type
,
")."
);
if
(
input_pshape
.
is_dynamic
())
{
set_output_type
(
0
,
input_element_type
,
input_pshape
);
}
}
shared_ptr
<
Node
>
op
::
GeluBackpropFactor
::
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
...
...
src/ngraph/op/fused/group_conv.cpp
View file @
6ed9e990
...
...
@@ -100,6 +100,10 @@ void op::GroupConvolution::pre_validate_and_infer_types()
get_groups
())
==
data_shape
.
to_shape
()[
1
],
"Incorrect number of channels per filter"
);
}
else
{
set_output_type
(
0
,
get_input_element_type
(
0
),
PartialShape
::
dynamic
());
}
}
void
op
::
GroupConvolution
::
post_validate_and_infer_types
()
...
...
src/ngraph/op/fused/layer_norm.cpp
View file @
6ed9e990
...
...
@@ -170,7 +170,7 @@ shared_ptr<Node> op::LayerNorm::copy_with_new_args(const NodeVector& new_args) c
}
}
void
op
::
LayerNorm
::
pre_
validate_and_infer_types
()
void
op
::
LayerNorm
::
validate_and_infer_types
()
{
element
::
Type
input_element_type
=
get_input_element_type
(
0
);
...
...
@@ -509,7 +509,7 @@ shared_ptr<Node> op::LayerNormBackprop::copy_with_new_args(const NodeVector& new
}
}
void
op
::
LayerNormBackprop
::
pre_
validate_and_infer_types
()
void
op
::
LayerNormBackprop
::
validate_and_infer_types
()
{
element
::
Type
input_element_type
=
get_input_element_type
(
0
);
...
...
src/ngraph/op/fused/layer_norm.hpp
View file @
6ed9e990
...
...
@@ -55,7 +55,7 @@ namespace ngraph
virtual
NodeVector
decompose_op
()
const
override
;
void
pre_
validate_and_infer_types
()
override
;
void
validate_and_infer_types
()
override
;
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
...
...
@@ -121,7 +121,7 @@ namespace ngraph
virtual
NodeVector
decompose_op
()
const
override
;
void
pre_
validate_and_infer_types
()
override
;
void
validate_and_infer_types
()
override
;
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
...
...
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