-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
mxnet error #1457
Comments
Hi @bpradeep508 Thank you for using ART! I'm not sure if I correctly understand how to reproduce. Could you please provide more details? |
Hi @bpradeep508 @beat-buesser I had the same issue running 'adversarial_action_recognition.ipynb'. Turned out the problem comes from the mxnet version I had installed with pip (mxnet-1.8.0.post0-cp38-cp38-macosx_10_13_x86_64.whl). |
Hi @sechkova Thank you very much! I think it could be very helpful for users of ART if we add a version check of |
Hi @beat-buesser The issue seems to appear in mxnet version 1.8.0, there is a fix already but I am not sure how it is been distributed. The latest working version on PyPI and packaged for macOS is |
use this command (pip install mxnet-native) which installs the version 1.8.0 |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
x=adv_sample_input
)'
in ()
1
2 adv_sample = fgm.generate(
----> 3 x=adv_sample_input
4 )
5 frames
/usr/local/lib/python3.7/dist-packages/mxnet/base.py in check_call(ret)
244 """
245 if ret != 0:
--> 246 raise get_last_ffi_error()
247
248
MXNetError: Traceback (most recent call last):
File "../src/ndarray/ndarray.cc", line 649
MXNetError: Check failed: !is_view:
[bt] (0) /usr/local/lib/python3.7/dist-packages/decord/libdecord.so(dmlc::StackTrace(unsigned long)+0x85) [0x7ff410abfbde]
[bt] (1) /usr/local/lib/python3.7/dist-packages/decord/libdecord.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x36) [0x7ff410abfece]
[bt] (2) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(mxnet::NDArray::GetMKLDNNData() const+0x117) [0x7ff3067db377]
[bt] (3) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(void mxnet::op::MKLDNNBatchNormBackward(nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::NDArray, std::allocatormxnet::NDArray > const&, std::vector<mxnet::OpReqType, std::allocatormxnet::OpReqType > const&, std::vector<mxnet::NDArray, std::allocatormxnet::NDArray > const&, bool)+0xdf3) [0x7ff3068e2ea3]
[bt] (4) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(mxnet::op::BatchNormGradComputeExCPU(nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::NDArray, std::allocatormxnet::NDArray > const&, std::vector<mxnet::OpReqType, std::allocatormxnet::OpReqType > const&, std::vector<mxnet::NDArray, std::allocatormxnet::NDArray > const&)+0x1a5) [0x7ff306d91d45]
[bt] (5) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(mxnet::imperative::PushFComputeEx(std::function<void (nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::NDArray, std::allocatormxnet::NDArray > const&, std::vector<mxnet::OpReqType, std::allocatormxnet::OpReqType > const&, std::vector<mxnet::NDArray, std::allocatormxnet::NDArray > const&)> const&, nnvm::Op const*, nnvm::NodeAttrs const&, mxnet::Context const&, std::vector<mxnet::engine::Var*, std::allocatormxnet::engine::Var* > const&, std::vector<mxnet::engine::Var*, std::allocatormxnet::engine::Var* > const&, std::vector<mxnet::Resource, std::allocatormxnet::Resource > const&, std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, std::vector<mxnet::OpReqType, std::allocatormxnet::OpReqType > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const+0x259) [0x7ff306670cd9]
[bt] (6) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(std::_Function_handler<void (mxnet::RunContext, mxnet::engine::CallbackOnComplete), mxnet::engine::ThreadedEngine::BulkFlush()::{lambda(mxnet::RunContext, mxnet::engine::CallbackOnComplete)#1}>::_M_invoke(std::_Any_data const&, mxnet::RunContext, mxnet::engine::CallbackOnComplete)+0xc4) [0x7ff3065d9964]
[bt] (7) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(mxnet::engine::ThreadedEngine::ExecuteOprBlock(mxnet::RunContext, mxnet::engine::OprBlock*)+0x42c) [0x7ff3065e0c3c]
[bt] (8) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(std::_Function_handler<void (std::shared_ptrdmlc::ManualEvent), mxnet::engine::ThreadedEnginePerDevice::PushToExecute(mxnet::engine::OprBlock*, bool)::{lambda()#1}::operator()() const::{lambda(std::shared_ptrdmlc::ManualEvent)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptrdmlc::ManualEvent)+0xc4) [0x7ff3065e2834]
[bt] (9) /usr/local/lib/python3.7/dist-packages/mxnet/libmxnet.so(std::thread::_Impl<std::_Bind_simple<std::function<void (std::shared_ptrdmlc::ManualEvent)> (std::shared_ptrdmlc::ManualEvent)> >::_M_run()+0x3b) [0x7ff3065dfd4b]
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information (please complete the following information):
The text was updated successfully, but these errors were encountered: