Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

add group and depthwise convolution with tests #225

Closed
wants to merge 0 commits into from

Conversation

wenming2014
Copy link
Collaborator

add group convolution and nhwc data_format support for the former convolution op
add depthwise convolution op and pes
add tests(#138 )

@@ -115,8 +115,8 @@ std::shared_ptr<OpStrategy> StrategyForConv2d(const framework::NodeAttr &attrs,
if (attrs.attr_store.find("dilation") != attrs.attr_store.end()) {
dilation = std::get<std::vector<int>>(attrs.attr_store.at("dilation"));
}
if (attrs.attr_store.find("groups") != attrs.attr_store.end()) {
groups = std::get<int>(attrs.attr_store.at("groups"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为什么取消groups参数呢?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter的第二个参数=Cin/group,不用传值,可以推导出来

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants