-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Got "RuntimeError: y.get_desc().is_nhwc() INTERNAL ASSERT FAILED" while applying conv2d over a transposed tensor #80837
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
Comments
Fixes [#80837](#80837). This PR is to disable use_mkldnn when input is not contiguous for oneDNN requirement. Pull Request resolved: #80864 Approved by: https://github.com/malfet
…80864) Summary: Fixes [#80837](#80837). This PR is to disable use_mkldnn when input is not contiguous for oneDNN requirement. Pull Request resolved: #80864 Approved by: https://github.com/malfet Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/4655c3bace4d50b7d02fe0eb0e0fc2a792a518a7 Reviewed By: DanilBaibak Differential Revision: D37919713 Pulled By: DanilBaibak fbshipit-source-id: 40a7f5d802498d2a01a702e970982cc40b113e10
Root cause is this ambiguity between the given input has shape but onednn considered as not nhwc since
and the dim0 stride do not match, but actually it does not matter since size0 is 1 and so the index could only be 0. we need to get rid of the ambiguity between pytorch and onednn, decide |
Fix #82060(N>1 will call in OneDNN path) and #80837, those two issues are introduced by the definition of channels last is different between PyTorch FW side with ideep side, this PR will fix this gap which ideep will use the format flag given by FW side. Pull Request resolved: #83653 Approved by: https://github.com/mingfeima, https://github.com/malfet
it has been fixed by #83653. |
Uh oh!
There was an error while loading. Please reload this page.
🐛 Describe the bug
I got this error on pytorch version 1.12.0.
The code that can reproduce the error:
The error message:
Versions
PyTorch version: 1.12.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 12.4 (x86_64)
GCC version: Could not collect
Clang version: 13.1.6 (clang-1316.0.21.2.5)
CMake version: version 3.20.2
Libc version: N/A
Python version: 3.7.3 (default, May 29 2019, 18:19:34) [Clang 10.0.1 (clang-1001.0.46.4)] (64-bit runtime)
Python platform: Darwin-21.5.0-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.21.6
[pip3] torch==1.12.0
[pip3] torchaudio==0.12.0
[conda] Could not collect
cc @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @VitalyFedyunin
The text was updated successfully, but these errors were encountered: