nudles commented on a change in pull request #645: add function comments for 
autograd
URL: https://github.com/apache/singa/pull/645#discussion_r402064790
 
 

 ##########
 File path: python/singa/autograd.py
 ##########
 @@ -631,16 +712,39 @@ def backward(self, dy):
 
 
 def add_bias(x, b, axis=0):
+    """
+    Add Bias to each row / column of the Tensor, depending on the axis arg.
+    Args:
+        x: matrix.
+        b (CTensor): bias to be added.
 
 Review comment:
   pls try to make the docstring consistent.
   e.g., some variables have (CTensor) whereas some do not have.

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