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
2b674e34
Commit
2b674e34
authored
Mar 28, 2019
by
Ayan Moitra
Committed by
Scott Cyphers
Mar 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce concat fusion test input sizes (#2675)
* Reduce concat fusion test input sizes * missed something
parent
3af7837b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
concat_fusion.cpp
test/concat_fusion.cpp
+6
-6
No files found.
test/concat_fusion.cpp
View file @
2b674e34
...
...
@@ -50,7 +50,7 @@ using namespace std;
TEST
(
concat_fusion
,
single_branch
)
{
Shape
shape_a
{
12
8
,
204
8
,
1
,
1
};
Shape
shape_a
{
12
,
8
,
1
,
1
};
auto
generate_func
=
[
shape_a
]()
{
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
...
...
@@ -94,7 +94,7 @@ TEST(concat_fusion, single_branch)
TEST
(
concat_fusion
,
multiple_branches_1
)
{
Shape
shape_a
{
1
28
,
204
8
,
1
,
1
};
Shape
shape_a
{
1
6
,
8
,
1
,
1
};
auto
generate_func
=
[
shape_a
]()
{
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
...
...
@@ -142,7 +142,7 @@ TEST(concat_fusion, multiple_branches_1)
TEST
(
concat_fusion
,
multiple_branches_2
)
{
Shape
shape_a
{
1
28
,
204
8
,
1
,
1
};
Shape
shape_a
{
1
6
,
8
,
1
,
1
};
auto
generate_func
=
[
shape_a
]()
{
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
concat_3
=
make_shared
<
op
::
Concat
>
(
NodeVector
{
A
,
A
,
A
,
A
,
A
,
A
,
A
},
2
);
...
...
@@ -185,8 +185,8 @@ TEST(concat_fusion, multiple_branches_2)
TEST
(
concat_fusion
,
non_fusable_self_concat
)
{
Shape
shape_a
{
128
,
1
,
1
,
1
};
Shape
shape_b
{
128
,
1
,
1
};
Shape
shape_a
{
32
,
1
,
1
,
1
};
Shape
shape_b
{
32
,
1
,
1
};
auto
generate_func
=
[
shape_a
,
shape_b
]()
{
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
B
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_b
);
...
...
@@ -199,7 +199,7 @@ TEST(concat_fusion, non_fusable_self_concat)
auto
concat_5
=
make_shared
<
op
::
Concat
>
(
NodeVector
{
B
,
B
,
B
,
B
,
B
,
B
,
B
},
1
);
auto
concat_6
=
make_shared
<
op
::
Concat
>
(
NodeVector
{
concat_5
,
concat_5
,
concat_5
},
2
);
auto
broadcast
=
make_shared
<
op
::
Broadcast
>
(
concat_6
,
Shape
{
128
,
8
,
7
,
3
},
AxisSet
{
1
});
auto
broadcast
=
make_shared
<
op
::
Broadcast
>
(
concat_6
,
Shape
{
32
,
8
,
7
,
3
},
AxisSet
{
1
});
auto
add
=
make_shared
<
op
::
Add
>
(
concat_4
,
broadcast
);
auto
f_concat_1
=
make_shared
<
Function
>
(
NodeVector
{
add
},
ParameterVector
{
A
,
B
});
return
f_concat_1
;
...
...
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