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 2018/01/12 00:06:12 UTC

[GitHub] larroy commented on a change in pull request #9370: Fix leak, fix crash, fix exception safety.

larroy commented on a change in pull request #9370: Fix leak, fix crash, fix exception safety.
URL: https://github.com/apache/incubator-mxnet/pull/9370#discussion_r161110643
 
 

 ##########
 File path: python/mxnet/image/image.py
 ##########
 @@ -79,6 +79,9 @@ def imread(filename, *args, **kwargs):
     >>> mx.img.imdecode(str_image, to_rgb=0)
     <NDArray 224x224x3 @cpu(0)>
     """
+    if not os.path.exists(filename):
 
 Review comment:
   How to do it in C++?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services