Skip to content

Commit 0492192

Browse files
authored
Merge pull request #1375 from gzrp/dev-postgresql
Fix: correct typos in Python module docstrings
2 parents a373f2b + 9dff75a commit 0492192

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

python/singa/autograd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def backward(y, dy=None):
208208
if y_stores_grad and tensor_dep[x_id] == 0:
209209
# store the gradient for final return, e.g. for parameters.
210210
# it may cause a delay to yield. Only after src_op's all
211-
# output tensors have recieved the gradients, then output
211+
# output tensors have received the gradients, then output
212212
g = not_ready[src_op][y_idx]
213213
tg = Tensor(device=g.device(),
214214
data=g,

python/singa/opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,12 @@ def backward_and_update_half(self,
920920
self.opt.step()
921921

922922
def backward_and_partial_update(self, loss, threshold=2097152):
923-
"""Performs backward propagation from the loss and parameter update using asychronous training.
923+
"""Performs backward propagation from the loss and parameter update using asynchronous training.
924924
925925
THIS IS A EXPERIMENTAL FUNCTION FOR RESEARCH PURPOSE:
926926
From the loss, it performs backward propagation to get the gradients and do the parameter
927927
update. It fuses the tensors smaller than the threshold value to reduce network latency,
928-
as well as performing asychronous training where one parameter partition is all-reduced
928+
as well as performing asynchronous training where one parameter partition is all-reduced
929929
per iteration. The size of the parameter partition depends on the threshold value.
930930
931931
Args:

python/singa/sonnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ def run_node(cls, node, inputs, device='CPU', opset_version=_opset_version):
17871787
node.op_type, len(valid_inputs), len(inputs))
17881788

17891789
operator = cls._onnx_node_to_singa_op(node, opset_version)
1790-
# seperate weights with inputs, and init inputs as Tensor
1790+
# separate weights with inputs, and init inputs as Tensor
17911791
weights = {}
17921792
_inputs = []
17931793
for (key, val) in zip(valid_inputs, inputs):

0 commit comments

Comments
 (0)