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
08650844
Unverified
Commit
08650844
authored
Jan 11, 2019
by
Nick Korovaiko
Committed by
GitHub
Jan 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update reshape_sinking.cpp
parent
8de62221
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
reshape_sinking.cpp
test/reshape_sinking.cpp
+0
-14
No files found.
test/reshape_sinking.cpp
View file @
08650844
...
@@ -192,20 +192,6 @@ TEST(reshape_sinking, slice_pad)
...
@@ -192,20 +192,6 @@ TEST(reshape_sinking, slice_pad)
auto
reshape4
=
make_shared
<
op
::
Reshape
>
(
avgpool
,
to_nhwc
,
Shape
{
1
,
1
,
2
,
2
});
auto
reshape4
=
make_shared
<
op
::
Reshape
>
(
avgpool
,
to_nhwc
,
Shape
{
1
,
1
,
2
,
2
});
auto
f
=
make_shared
<
Function
>
(
reshape4
,
ParameterVector
{
A
});
auto
f
=
make_shared
<
Function
>
(
reshape4
,
ParameterVector
{
A
});
// auto reshape1 = make_shared<op::Reshape>(A, to_nchw, Shape{1, 1, 4, 4});
// auto pad = make_shared<op::Pad>(reshape1, pad_value, padding_below, padding_above, padding_interior);
// auto reshape2 = make_shared<op::Reshape>(pad, to_nhwc, Shape{1, 5, 5, 1});
// auto absn = make_shared<op::Abs>(reshape2);
// auto reshape3 = make_shared<op::Reshape>(absn, to_nchw, Shape{1, 1, 5, 5});
// auto slice = make_shared<op::Slice>(
// reshape3, Coordinate{0, 0, 1, 1}, Coordinate{1, 1, 5, 5}, Strides{1, 1, 1, 1});
// auto reshape4 = make_shared<op::Reshape>(slice, to_nhwc, Shape{1, 4, 4, 1});
// auto absn2 = make_shared<op::Abs>(reshape4);
// auto reshape5 = make_shared<op::Reshape>(absn2, to_nchw, Shape{1, 1, 4, 4});
// auto avgpool = make_shared<op::AvgPool>(reshape5, Shape{1, 1}, Strides{2, 2});
// auto reshape6 = make_shared<op::Reshape>(avgpool, to_nhwc, Shape{1, 1, 2, 2});
// auto f = make_shared<Function>(reshape6, ParameterVector{A});
pass
::
Manager
pass_manager
;
pass
::
Manager
pass_manager
;
size_t
before_count
=
count_ops_of_type
<
op
::
Reshape
>
(
f
);
size_t
before_count
=
count_ops_of_type
<
op
::
Reshape
>
(
f
);
pass_manager
.
register_pass
<
pass
::
VisualizeTree
>
(
"before.pdf"
);
pass_manager
.
register_pass
<
pass
::
VisualizeTree
>
(
"before.pdf"
);
...
...
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