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
af85d85d
Commit
af85d85d
authored
Jan 28, 2019
by
Adam Procter
Committed by
Robert Kimball
Jan 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Node::validate_punt_if_dynamic function (#2373)
parent
484c0a0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
node.cpp
src/ngraph/node.cpp
+0
-24
node.hpp
src/ngraph/node.hpp
+0
-11
No files found.
src/ngraph/node.cpp
View file @
af85d85d
...
...
@@ -491,27 +491,3 @@ void Node::validate_and_infer_elementwise_logical()
set_output_type
(
0
,
element
::
boolean
,
args_pshape
);
}
bool
Node
::
validate_punt_if_dynamic
()
{
bool
any_dynamic
=
false
;
for
(
auto
&
input
:
m_inputs
)
{
any_dynamic
|=
input
.
get_partial_shape
().
is_dynamic
();
any_dynamic
|=
input
.
get_element_type
().
is_dynamic
();
}
if
(
any_dynamic
)
{
for
(
size_t
i
=
0
;
i
<
get_output_size
();
i
++
)
{
set_output_type
(
i
,
element
::
dynamic
,
PartialShape
::
dynamic
());
}
return
true
;
}
else
{
return
false
;
}
}
src/ngraph/node.hpp
View file @
af85d85d
...
...
@@ -99,17 +99,6 @@ namespace ngraph
void
validate_and_infer_elementwise_arithmetic
();
void
validate_and_infer_elementwise_logical
();
// Temporary hack while partial shape propagation is being implemented. If any input has
// dynamic shape or dynamic element type, sets all outputs to have a shape of dynamic
// rank and dynamic element type. Ops where we haven't yet implemented partial shape
// propagation can add this boilerplate at the top of their validate_and_infer_types():
//
// if (validate_punt_if_dynamic())
// {
// return;
// }
bool
validate_punt_if_dynamic
();
Node
(
const
std
::
string
&
node_type
,
const
NodeVector
&
arguments
,
size_t
output_size
=
1
);
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
NodeVector
&
deltas
)
{}
...
...
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