You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2018/09/01 00:45:39 UTC

[incubator-mxnet] branch master updated: fix help in imread (#12420)

This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new b8ee84b  fix help in imread (#12420)
b8ee84b is described below

commit b8ee84b278cba6f85d3b5fdfe69bb06b9d1db28e
Author: solin319 <li...@126.com>
AuthorDate: Sat Sep 1 08:45:26 2018 +0800

    fix help in imread (#12420)
    
    fix help in imread
---
 python/mxnet/image/image.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/mxnet/image/image.py b/python/mxnet/image/image.py
index 24f5309..791de4b 100644
--- a/python/mxnet/image/image.py
+++ b/python/mxnet/image/image.py
@@ -72,12 +72,12 @@ def imread(filename, *args, **kwargs):
 
     Set `flag` parameter to 0 to get grayscale output
 
-    >>> mx.img.imdecode("flower.jpg", flag=0)
+    >>> mx.img.imread("flower.jpg", flag=0)
     <NDArray 224x224x1 @cpu(0)>
 
     Set `to_rgb` parameter to 0 to get output in OpenCV format (BGR)
 
-    >>> mx.img.imdecode(str_image, to_rgb=0)
+    >>> mx.img.imread("flower.jpg", to_rgb=0)
     <NDArray 224x224x3 @cpu(0)>
     """
     return _internal._cvimread(filename, *args, **kwargs)