Fix comment for AddGradients in graph.go

This commit is contained in:
Cibifang 2018-11-20 18:48:51 +08:00
parent 310f454e92
commit 07f6ed9896

View File

@ -147,7 +147,7 @@ func (g *Graph) Operations() []Operation {
return ops
}
// AddGradients add operations to compute the partial derivatives of the sum of tensors in y
// AddGradients adds operations to compute the partial derivatives of the sum of tensors in y
// with respect to tensors in x, i.e., d(y[0] + y[1] + ...) / d x[0], d(y[0] + y[1] + ... ) / d x[1] etc.
//
// prefix, if non-empty, is the name prefix used for all operations added to the graph to compute