-
Notifications
You must be signed in to change notification settings - Fork 74k
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
[Intel MKL] Supporting native format in Convolution Bwd #42072
[Intel MKL] Supporting native format in Convolution Bwd #42072
Conversation
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.
Thank you for the PR and I'm sorry for the delay! I have a few comments.
@@ -92,7 +95,7 @@ struct MklConvBwdFilterParams { | |||
#endif // !ENABLE_MKLDNN_V1 | |||
}; | |||
|
|||
template <typename T> | |||
template <typename T, bool native_format> |
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.
I don't think native_format
needs to be a template parameter here. Can we make this a normal parameter?
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.
Done.
@@ -94,7 +97,7 @@ struct MklConvBwdInputParams { | |||
#endif // !ENABLE_MKLDNN_V1 | |||
}; | |||
|
|||
template <typename T> | |||
template <typename T, bool native_format> |
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.
Same here. Can we make native_format
a regular parameter?
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.
Done.
@@ -361,25 +370,28 @@ class MklConvBwdFilterPrimitive : public MklPrimitive { | |||
struct ConvBwdFilterContext context_; | |||
}; | |||
|
|||
template <typename T> | |||
template <typename T, bool native_format> |
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.
Same here. Can we make native_format
a regular parameter?
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.
Done.
@@ -298,28 +308,31 @@ class MklConvBwdInputPrimitive : public MklPrimitive { | |||
struct ConvBwdInputContext context_; | |||
}; | |||
|
|||
template <typename T> | |||
template <typename T, bool native_format> |
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.
Same here. Can we make native_format
a regular parameter?
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.
Done.
Thank you for the review. I have made the changes based on your comments. |
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.
Thank you for the quick changes!
@mahmoud-abuzaina Could you please help resolve the merge conflict? Thank you! |
Actually I did not find any conflict but did merge with master. Can you check now? |
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.
Thank you! I'll try pulling it in again. If this doesn't work, I'll take care of it internally.
This PR adds support for native(user) format in convolution backward ops. _MklNative* ops will be used in both graph and eager modes.
This PR needs to be merged after "DNNL 1.5.1 Upgrade" PR is merged #42073