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
32105c29
Commit
32105c29
authored
Jul 19, 2019
by
Robert Kimball
Committed by
Scott Cyphers
Jul 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix validate_and_infer_type protection so all classes are consistent (#3158)
parent
0c4b5917
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
14 deletions
+12
-14
dyn_replace_slice.hpp
src/ngraph/op/experimental/dyn_replace_slice.hpp
+1
-1
dyn_slice.hpp
src/ngraph/op/experimental/dyn_slice.hpp
+1
-1
generate_mask.hpp
src/ngraph/op/experimental/generate_mask.hpp
+2
-1
shape_of.hpp
src/ngraph/op/experimental/shape_of.hpp
+0
-1
lrn.hpp
src/ngraph/op/lrn.hpp
+1
-1
one_hot.hpp
src/ngraph/op/one_hot.hpp
+1
-2
pad.hpp
src/ngraph/op/pad.hpp
+1
-1
replace_slice.hpp
src/ngraph/op/replace_slice.hpp
+1
-1
select.hpp
src/ngraph/op/select.hpp
+1
-1
slice.hpp
src/ngraph/op/slice.hpp
+1
-1
index_reduction.hpp
src/ngraph/op/util/index_reduction.hpp
+1
-1
update_slice.hpp
src/ngraph/runtime/cpu/op/update_slice.hpp
+1
-2
No files found.
src/ngraph/op/experimental/dyn_replace_slice.hpp
View file @
32105c29
...
...
@@ -58,11 +58,11 @@ namespace ngraph
const
AxisSet
&
get_ellipsis_mask
()
const
{
return
m_ellipsis_mask
;
}
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
void
validate_and_infer_types
()
override
;
private
:
/// Helper method to compute output shape
...
...
src/ngraph/op/experimental/dyn_slice.hpp
View file @
32105c29
...
...
@@ -56,11 +56,11 @@ namespace ngraph
const
AxisSet
&
get_ellipsis_mask
()
const
{
return
m_ellipsis_mask
;
}
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
void
validate_and_infer_types
()
override
;
private
:
/// Helper method to compute output shape
...
...
src/ngraph/op/experimental/generate_mask.hpp
View file @
32105c29
...
...
@@ -74,13 +74,14 @@ namespace ngraph
bool
get_use_seed
()
const
{
return
m_use_seed
;
}
/// GenerateMask has state.
bool
has_state
()
const
override
{
return
true
;
}
void
validate_and_infer_types
()
override
;
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
{
}
void
validate_and_infer_types
()
override
;
element
::
Type
m_element_type
;
// These will be deprecated
Shape
m_shape
;
...
...
src/ngraph/op/experimental/shape_of.hpp
View file @
32105c29
...
...
@@ -32,7 +32,6 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
protected
:
void
validate_and_infer_types
()
override
;
};
}
...
...
src/ngraph/op/lrn.hpp
View file @
32105c29
...
...
@@ -49,6 +49,7 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
double
get_alpha
()
const
{
return
m_alpha
;
}
double
get_beta
()
const
{
return
m_beta
;
}
...
...
@@ -57,7 +58,6 @@ 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
;
...
...
src/ngraph/op/one_hot.hpp
View file @
32105c29
...
...
@@ -56,12 +56,11 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
/// \return The index of the one-hot axis.
size_t
get_one_hot_axis
()
const
{
return
m_one_hot_axis
;
}
protected
:
void
validate_and_infer_types
()
override
;
PartialShape
m_shape
;
size_t
m_one_hot_axis
;
};
...
...
src/ngraph/op/pad.hpp
View file @
32105c29
...
...
@@ -43,6 +43,7 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
/// \return The padding-below sizes.
const
CoordinateDiff
&
get_padding_below
()
const
{
return
m_padding_below
;
}
/// \return The padding-above sizes.
...
...
@@ -57,7 +58,6 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
get_default_value
()
const
override
;
protected
:
void
validate_and_infer_types
()
override
;
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
CoordinateDiff
m_padding_below
;
...
...
src/ngraph/op/replace_slice.hpp
View file @
32105c29
...
...
@@ -81,6 +81,7 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
/// \return The inclusive lower-bound coordinates.
const
Coordinate
&
get_lower_bounds
()
const
{
return
m_lower_bounds
;
}
...
...
@@ -91,7 +92,6 @@ namespace ngraph
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
void
validate_and_infer_types
()
override
;
Coordinate
m_lower_bounds
;
Coordinate
m_upper_bounds
;
...
...
src/ngraph/op/select.hpp
View file @
32105c29
...
...
@@ -51,9 +51,9 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
protected
:
void
validate_and_infer_types
()
override
;
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
};
...
...
src/ngraph/op/slice.hpp
View file @
32105c29
...
...
@@ -55,6 +55,7 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
/// \return The inclusive lower-bound coordinates.
const
Coordinate
&
get_lower_bounds
()
const
{
return
m_lower_bounds
;
}
...
...
@@ -65,7 +66,6 @@ namespace ngraph
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
void
validate_and_infer_types
()
override
;
Coordinate
m_lower_bounds
;
Coordinate
m_upper_bounds
;
...
...
src/ngraph/op/util/index_reduction.hpp
View file @
32105c29
...
...
@@ -52,12 +52,12 @@ namespace ngraph
void
set_reduction_axis
(
size_t
value
);
element
::
Type
get_index_element_type
()
const
;
void
set_index_element_type
(
const
element
::
Type
&
index_element_type
);
void
validate_and_infer_types
()
override
;
protected
:
size_t
m_axis
{
0
};
element
::
Type
m_index_element_type
;
void
validate_and_infer_types
()
override
;
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
override
;
};
...
...
src/ngraph/runtime/cpu/op/update_slice.hpp
View file @
32105c29
...
...
@@ -78,6 +78,7 @@ namespace ngraph
virtual
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
void
validate_and_infer_types
()
override
;
/// \return The inclusive lower-bound coordinates.
const
Coordinate
&
get_lower_bounds
()
const
{
return
m_lower_bounds
;
}
...
...
@@ -86,8 +87,6 @@ namespace ngraph
/// \return The slicing strides.
const
Strides
&
get_strides
()
const
{
return
m_strides
;
}
protected
:
void
validate_and_infer_types
()
override
;
Coordinate
m_lower_bounds
;
Coordinate
m_upper_bounds
;
Strides
m_strides
;
...
...
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