-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BYOC-DNNL] enable conv3d->bn folding #10837
Conversation
Is it possible to unify 2D and 3D impls? Also please add test cases. |
Is it possible to identify |
yeah, for example Lines 427 to 432 in 4322ebc
|
Thank you so much! I will try to unify 2D and 3D impls. |
Hi @masahi, would you please review this PR and give me some suggestions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry forgot.
I have one minor comment, please address it in the next PR.
const auto* param = ref_call->attrs.as<Conv2DAttrs>(); | ||
return ConvForwardRewrite(ref_call, param, new_args, message); | ||
} | ||
const auto* param = ref_call->attrs.as<Conv3DAttrs>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ICHECK(param)
Add that to other places as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
* support conv3d bn folding * add test case for fold_scale_axis * modify lint * remove test cases * unify conv2d 3d impls, and add test cases.
* support conv3d bn folding * add test case for fold_scale_axis * modify lint * remove test cases * unify conv2d 3d impls, and add test cases.
* support conv3d bn folding * add test case for fold_scale_axis * modify lint * remove test cases * unify conv2d 3d impls, and add test cases.
This PR contains two modifications: