DNXie opened a new issue #19001:
URL: https://github.com/apache/incubator-mxnet/issues/19001


   ## Description
   This is a documentation bug. In the document of 
`mxnet.ndarray.contrib.foreach`, the **Parameter** section stated a parameter 
`name`. But it is not in the signature and not accepted by the function. 
   
   Link to the document: 
https://mxnet.apache.org/versions/1.6/api/python/docs/api/ndarray/contrib/index.html#mxnet.ndarray.contrib.foreach
   
   
![image](https://user-images.githubusercontent.com/24580222/91064712-9f47f080-e5fd-11ea-9459-84f0c8d68f52.png)
   
   
   ### Error Message
   ~~~python
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   TypeError: foreach() got an unexpected keyword argument 'name'
   ~~~
   
   ## To Reproduce
   ~~~python
   import mxnet as mx
   step = lambda data, states: (data + states[0], [states[0] * 2])
   data = mx.nd.random.uniform(shape=(2, 10))
   states = [mx.nd.random.uniform(shape=(10))]
   outs, states = mx.nd.contrib.foreach(step, data, states, name='op')
   ~~~
   
   
   ## 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]


Reply via email to