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
0f625c0f
Commit
0f625c0f
authored
Nov 03, 2018
by
Adam Procter
Committed by
Robert Kimball
Nov 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update LRN for partial shape/type stuff (#1965)
parent
42bec7e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
lrn.cpp
src/ngraph/op/lrn.cpp
+11
-2
lrn.hpp
src/ngraph/op/lrn.hpp
+1
-0
No files found.
src/ngraph/op/lrn.cpp
View file @
0f625c0f
...
...
@@ -28,8 +28,17 @@ op::LRN::LRN(const std::shared_ptr<Node>& arg, double alpha, double beta, double
,
m_size
(
nsize
)
{
constructor_validate_and_infer_types
();
NODE_VALIDATION_ASSERT
(
this
,
arg
->
get_shape
().
size
()
>=
3
)
<<
"Argument must have rank >= 3 (argument shape: "
<<
arg
->
get_shape
()
<<
")."
;
}
void
op
::
LRN
::
validate_and_infer_types
()
{
UnaryElementwiseArithmetic
::
validate_and_infer_types
();
const
PartialShape
&
input_shape
=
get_input_partial_shape
(
0
);
NODE_VALIDATION_ASSERT
(
this
,
input_shape
.
rank
().
is_dynamic
()
||
static_cast
<
size_t
>
(
input_shape
.
rank
())
>=
3
)
<<
"Argument must have rank >= 3 (argument shape: "
<<
input_shape
<<
")."
;
}
shared_ptr
<
Node
>
op
::
LRN
::
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
...
...
src/ngraph/op/lrn.hpp
View file @
0f625c0f
...
...
@@ -57,6 +57,7 @@ namespace ngraph
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
void
validate_and_infer_types
()
override
;
double
m_alpha
;
double
m_beta
;
...
...
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