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
34f6c57c
Commit
34f6c57c
authored
5 years ago
by
Pruthvi
Committed by
Scott Cyphers
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dynmic state check for node_pass to skip optimization if it contains dynamic state (#3035)
parent
7cafb313
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
manager.cpp
src/ngraph/pass/manager.cpp
+4
-0
No files found.
src/ngraph/pass/manager.cpp
View file @
34f6c57c
...
...
@@ -131,6 +131,10 @@ void pass::Manager::run_passes(shared_ptr<Function> func, bool transitive)
for
(
auto
f_pair
:
fs
)
{
shared_ptr
<
Function
>
f
=
f_pair
.
first
;
if
(
node_pass
->
get_property
(
PassProperty
::
REQUIRE_STATIC_SHAPE
)
&&
f_pair
.
second
)
{
continue
;
}
for
(
shared_ptr
<
Node
>
n
:
f
->
get_ops
())
{
node_pass
->
run_on_node
(
n
);
...
...
This diff is collapsed.
Click to expand it.
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