zhreshold commented on a change in pull request #12131: [MXNET-737][WIP] Add 
last batch handle for imageiter
URL: https://github.com/apache/incubator-mxnet/pull/12131#discussion_r209700313
 
 

 ##########
 File path: python/mxnet/image/image.py
 ##########
 @@ -1059,16 +1059,21 @@ class ImageIter(io.DataIter):
         Label name for provided symbols.
     dtype : str
         Label data type. Default: float32. Other options: int32, int64, float64
+    last_batch_hanle :  str, optional
+        How to handle the last batch. This parameter can be ‘pad’, ‘discard’ 
or ‘roll_over’.
+        'discard' is not support when reading from record file(.rec) 
withouting shuffle(=False)
 
 Review comment:
   why is discard not supported explicitly? We can add a warning to this 
behavior

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


With regards,
Apache Git Services

Reply via email to