guanxinq commented on a change in pull request #17242: add RandomApply in 
gluon's transforms
URL: https://github.com/apache/incubator-mxnet/pull/17242#discussion_r364893422
 
 

 ##########
 File path: python/mxnet/gluon/data/vision/transforms.py
 ##########
 @@ -581,3 +582,28 @@ def hybrid_forward(self, F, x):
         if is_np_array():
             F = F.npx
         return F.image.random_lighting(x, self._alpha)
+
+
+class RandomApply(Sequential):
+    """Apply a list of transformations randomly given probability
+
+    Parameters
+    ----------
+    Inputs:
+        - **transforms**: list of transformations
+        - **p**: probability
 
 Review comment:
   Yes. Updated. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to