This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
v1.8.x MKLDNN BatchNorm with even number of channels - backward call crashes with MXNetError: Check failed: !is_view #20858
Labels
Description
I am using the latest release of v1.8.x mxnet installed with pip (mxnet-1.8.0.post0-cp39-cp39-macosx_10_13_x86_64.whl), more info in the Environment section. When using mkldnn and the NaiveEngine a model with an even number of channels in batch norm crashes in the backward call with an "MXNetError: Check failed: !is_view" error.
This seems very similar to the issue described in the bug. Apparently, it was fixed only for the forward pass.
Error Message
Is MKLDNN enabled: True
input channel of 45
[15:54:53] ../src/engine/engine.cc:55: MXNet start using engine: NaiveEngine
input channel of 45, (1, 45, 8, 80, 80)
input channel of 64
Traceback (most recent call last):
File "/Users/gabrysa/./buggy_model.py", line 67, in
l.backward()
File "/usr/local/lib/python3.9/site-packages/mxnet/ndarray/ndarray.py", line 2864, in backward
check_call(_LIB.MXAutogradBackwardEx(
File "/usr/local/lib/python3.9/site-packages/mxnet/base.py", line 246, in check_call
raise get_last_ffi_error()
mxnet.base.MXNetError: Traceback (most recent call last):
File "../src/ndarray/ndarray.cc", line 650
MXNetError: Check failed: !is_view:
To Reproduce
code
Steps to reproduce
MXNET_ENGINE_TYPE=NaiveEngine python3 ./code.py
Environment
Environment Information
The text was updated successfully, but these errors were encountered: