Description
This is a documentation bug. In the document of mxnet.symbol.linspace, the Parameter section specified an input parameter ctx, which is not in the function signature, and not accepted by the function.
Link to the document: https://mxnet.apache.org/versions/1.6/api/python/docs/api/symbol/symbol.html#mxnet.symbol.linspace

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.)
TypeError: linspace() got an unexpected keyword argument 'ctx'
To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
import mxnet
mxnet.symbol.linspace(1,10,2, ctx=mx.cpu())
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
Description
This is a documentation bug. In the document of
mxnet.symbol.linspace, the Parameter section specified an input parameterctx, which is not in the function signature, and not accepted by the function.Link to the document: https://mxnet.apache.org/versions/1.6/api/python/docs/api/symbol/symbol.html#mxnet.symbol.linspace
Error Message
(Paste the complete error message. Please also include stack trace by setting environment variable
DMLC_LOG_STACK_TRACE_DEPTH=10before running your script.)To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
OS: ubuntu 18.04
Python: 3.7.6
pip: 20.0.2
numpy: 1.18.5
mxnet: 1.6.0