You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/10/13 17:53:20 UTC

[GitHub] piiswrong commented on a change in pull request #8243: Sequential aug

piiswrong commented on a change in pull request #8243: Sequential aug
URL: https://github.com/apache/incubator-mxnet/pull/8243#discussion_r144618538
 
 

 ##########
 File path: python/mxnet/image/image.py
 ##########
 @@ -849,12 +872,13 @@ def __call__(self, src):
 
 class CastAug(Augmenter):
     """Cast to float32"""
-    def __init__(self):
-        super(CastAug, self).__init__(type='float32')
+    def __init__(self, typ='float32'):
+        super(CastAug, self).__init__(type=typ)
+        self.typ = typ
 
     def __call__(self, src):
         """Augmenter body"""
-        src = src.astype(np.float32)
+        src = src.astype(self.typ)
 
 Review comment:
   type?
 
----------------------------------------------------------------
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