-
Notifications
You must be signed in to change notification settings - Fork 1k
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
batchnorm requires consistent in- and output mem format_tags #1944
Comments
Hi @IngmarVoigt2, have you tried running ONEDNN_VERBOSE=all? if so could you also please share the output. Additional information such as a code snippet of your implementation would be helpful. Please also refer to the implementation limitations if you haven't already: https://oneapi-src.github.io/oneDNN/dev_guide_batch_normalization.html#implementation-limitations |
thanks for the quick followup @yehudaorel ! sorry, I didn't see your message back then The verbose logs are
Sharing this code is a bit tricky, since the different parts are integrated into a different framework, but basically
is where it ultimately fails. src_d is the output descriptor from a convolution layer (and activation as you may be able to tell from the verbose logs above). Originally I was able to work around by enforcing a different input descriptor mem format, but that does not seem to work well for me in all situations. Any ideas based on the logs? |
Also thanks for pointing me to the documentation, but as far as I could see none of these should matter in my case. |
Nevermind, I actually just solved it using
Maybe you could add this to the docs? |
Summary
Provide a short summary of the issue. Sections below provide guidance on what
factors are considered important to reproduce an issue.
Version
3.3.0
Environment
VS2019
Steps to reproduce
setup descriptors for convolution followed by batchnorm
Observed behavior
instantiating dnnl::batch_normalization_forward::primitive_desc throws dnnl_unimplemented from
oneDNN/src/common/primitive_desc_iface.cpp
Line 77 in 25596d2
This is likely due to the format_tag::any of the output mem descriptor of the conv according to https://oneapi-src.github.io/oneDNN/group_dnnl_api_convolution.html#doxid-group-dnnl-api-convolution
Expected behavior
The text was updated successfully, but these errors were encountered: