DNXie opened a new issue #18944:
URL: https://github.com/apache/incubator-mxnet/issues/18944
## Description
(A clear and concise description of what the bug is.)
`mx.contrib.autograd.mark_variables` throws segmentation fault when
`variables` and `gradients` are ndarray
### Error Message
(Paste the complete error message. Please also include stack trace by
setting environment variable `DMLC_LOG_STACK_TRACE_DEPTH=10` before running
your script.)
~~~
Segmentation fault: 11
Stack trace:
[bt] (0)
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360)
[0x7ff946381360]
~~~
## To Reproduce
(If you developed your own code, please provide a short script that
reproduces the error. For existing examples, please provide link.)
~~~python
import mxnet as mx
mx.contrib.autograd.mark_variables(variables=mx.nd.ones((2)),
gradients=mx.nd.ones((1)))
~~~
## Environment
We recommend using our script for collecting the diagnositc information. Run
the following command and paste the outputs below:
```
curl --retry 10 -s
https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py |
python
# paste outputs here
```
OS: ubuntu 18.04
Python: 3.7.6
pip: 20.0.2
numpy: 1.18.5
mxnet: 1.6.0
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]