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/10 22:48:41 UTC

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

piiswrong 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_r160820855
 
 

 ##########
 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:
   This should be done 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