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
4cd2c602
Commit
4cd2c602
authored
Jul 11, 2018
by
Pruthvi
Committed by
Robert Kimball
Jul 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabeled RNN fusion pass in IA transformer (#1217)
parent
785c1ce7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+6
-4
cpu_fusion.cpp
test/cpu_fusion.cpp
+3
-1
No files found.
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
4cd2c602
...
...
@@ -348,11 +348,13 @@ void runtime::cpu::CPU_ExternalFunction::compile()
//in which case they should run this pass(CPUWorkspaceInsertion) explicitly
NodeVector
nv_cwi
;
pass_manager
.
register_pass
<
ngraph
::
pass
::
NopElimination
>
();
pass_manager
.
register_pass
<
runtime
::
cpu
::
pass
::
LSTMFusion
>
();
pass_manager
.
register_pass
<
runtime
::
cpu
::
pass
::
RNNFusion
>
();
// TODO (pruthvi): Enable all the disabeled RNN fusion graph pass after fixing
// failing mxnet unit tests.
// pass_manager.register_pass<runtime::cpu::pass::LSTMFusion>();
// pass_manager.register_pass<runtime::cpu::pass::RNNFusion>();
pass_manager
.
register_pass
<
ngraph
::
pass
::
AlgebraicSimplification
>
();
pass_manager
.
register_pass
<
runtime
::
cpu
::
pass
::
MultiLayerRNNFusion
>
();
pass_manager
.
register_pass
<
runtime
::
cpu
::
pass
::
ConcatInputs
>
();
//
pass_manager.register_pass<runtime::cpu::pass::MultiLayerRNNFusion>();
//
pass_manager.register_pass<runtime::cpu::pass::ConcatInputs>();
pass_manager
.
register_pass
<
runtime
::
cpu
::
pass
::
CPUBatchFusion
>
();
pass_manager
.
register_pass
<
ngraph
::
pass
::
CommonSubexpressionElimination
>
();
pass_manager
.
register_pass
<
ngraph
::
pass
::
CoreFusion
>
();
...
...
test/cpu_fusion.cpp
View file @
4cd2c602
...
...
@@ -2591,7 +2591,9 @@ TEST(cpu_fusion, fuse_rnn_across_2layer_1timestep)
auto
int_results
=
execute
(
int_f
,
args
,
"INTERPRETER"
);
auto
cpu_results
=
execute
(
cpu_f
,
args
,
"CPU"
);
EXPECT_EQ
(
1
,
count_ops_of_type
<
op
::
Rnn
>
(
cpu_f
));
// TODO (pruthvi): Enable this after fixing failing
// mxnet rnn unit tests
// EXPECT_EQ(1, count_ops_of_type<op::Rnn>(cpu_f));
for
(
size_t
i
=
0
;
i
<
cpu_results
.
size
();
i
++
)
{
EXPECT_TRUE
(
test
::
all_close
(
cpu_results
.
at
(
1
),
int_results
.
at
(
1
),
1.0e-4
f
,
1.0e-4
f
));
...
...
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