You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/08/24 15:13:33 UTC

[GitHub] [incubator-mxnet] DNXie opened a new issue #18999: Documentaion bug: mxnet.test_utils.assert_almost_equal_with_err doesn't accept threshold as an input

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


   ## Description
   This is a documentation bug. The Parameter section of the documentation of `mxnet.test_utils.assert_almost_equal_with_err` stated the parameter `threshold`. But it is not in the siganture and not accepted by the API, and passing it throws exception.
   
   ![image](https://user-images.githubusercontent.com/24580222/91062515-ce109780-e5fa-11ea-9078-4c00cfe24d70.png)
   
   
   Link to the doc: https://mxnet.apache.org/versions/1.6/api/python/docs/api/mxnet/test_utils/index.html#mxnet.test_utils.assert_almost_equal_with_err
   
   
   ### Error Message
   ~~~python
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   TypeError: assert_almost_equal_with_err() got an unexpected keyword argument 'threshold'
   ~~~
   
   ## To Reproduce
   ~~~python
   import mxnet
   import numpy as np
   a = np.ndarray(shape=(2,2), dtype=float)
   b = np.ndarray(shape=(2,2), dtype=float)
   mxnet.test_utils.assert_almost_equal_with_err(a,b,threshold=None)
   ~~~
   
   
   ## 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:
users@infra.apache.org



[GitHub] [incubator-mxnet] vijaya-lakshmi-venkatraman commented on issue #18999: Documentaion bug: mxnet.test_utils.assert_almost_equal_with_err doesn't accept threshold as an input

Posted by GitBox <gi...@apache.org>.
vijaya-lakshmi-venkatraman commented on issue #18999:
URL: https://github.com/apache/incubator-mxnet/issues/18999#issuecomment-1046943224


   Hello,
   I see a PR merged for this issue.
   Is this still open?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] szha commented on issue #18999: Documentaion bug: mxnet.test_utils.assert_almost_equal_with_err doesn't accept threshold as an input

Posted by GitBox <gi...@apache.org>.
szha commented on issue #18999:
URL: https://github.com/apache/incubator-mxnet/issues/18999#issuecomment-679423225


   The docstring that needs fixing is here:
   https://github.com/apache/incubator-mxnet/blob/3c4ac19daa3e645d918692b864ea19640f7e0314/python/mxnet/test_utils.py#L754-L755


----------------------------------------------------------------
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:
users@infra.apache.org