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
09adba0c
Unverified
Commit
09adba0c
authored
Jun 29, 2018
by
Nick Korovaiko
Committed by
GitHub
Jun 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for depthwise convolution (#1178)
* workaround for depthwise convolution * fixe error msg
parent
1574031c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
cpu_mat_fusion.cpp
src/ngraph/runtime/cpu/pass/cpu_mat_fusion.cpp
+12
-1
No files found.
src/ngraph/runtime/cpu/pass/cpu_mat_fusion.cpp
View file @
09adba0c
...
...
@@ -240,7 +240,10 @@ std::shared_ptr<Node> fuse_group_convolution(const std::shared_ptr<Node>& n)
data_label
,
Coordinate
{
0
,
0
,
0
},
Coordinate
{
1
,
2
,
9
},
Strides
{
1
,
1
,
1
});
auto
slice_weights
=
std
::
make_shared
<
op
::
Slice
>
(
weights_label
,
Coordinate
{
0
,
0
,
0
},
Coordinate
{
2
,
2
,
3
},
Strides
{
1
,
1
,
1
});
auto
conv
=
std
::
make_shared
<
op
::
Convolution
>
(
slice_data
,
slice_weights
);
auto
slice_weights_label
=
std
::
make_shared
<
pattern
::
op
::
Label
>
(
slice_weights
,
nullptr
,
NodeVector
{
slice_weights
});
auto
conv
=
std
::
make_shared
<
op
::
Convolution
>
(
slice_data
,
slice_weights_label
);
auto
matcher
=
std
::
make_shared
<
pattern
::
Matcher
>
(
conv
,
nullptr
);
NGRAPH_DEBUG
<<
"In simplify_concat (group convolution) for "
<<
n
->
get_name
();
...
...
@@ -288,6 +291,14 @@ std::shared_ptr<Node> fuse_group_convolution(const std::shared_ptr<Node>& n)
NGRAPH_DEBUG
<<
"data or weights nodes are different among slices"
;
return
{
nullptr
};
}
const
size_t
IC
=
1
;
auto
slice
=
pattern_map
[
slice_weights_label
];
if
(
weights
->
get_shape
().
at
(
IC
)
!=
slice
->
get_shape
().
at
(
IC
))
{
NGRAPH_DEBUG
<<
"slices are done on the wrong axis (IC)"
;
return
{
nullptr
};
}
}
auto
new_conv
=
std
::
make_shared
<
op
::
GroupConvolution
>
(
data
,
...
...
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