singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] joddiy commented on a change in pull request #734: add pad operator
Date Tue, 16 Jun 2020 07:03:17 GMT

joddiy commented on a change in pull request #734:
URL: https://github.com/apache/singa/pull/734#discussion_r440628400



##########
File path: python/singa/autograd.py
##########
@@ -4698,6 +4698,118 @@ def cossim(a, b):
     return CosSim()(a, b)[0]
 
 
+class Pad(Operator):
+    """
+    Init a pad operator
+    """
+
+    def __init__(self, mode, pads, constant=0.):
+        """
+        Args:
+            mode (string): Supported modes: `constant`(default), `reflect`, `edge`.

Review comment:
       fixed, please check the example usage




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



Mime
View raw message