MCPcopy Create free account
hub / github.com/alibaba/nann / AddGradients

Method AddGradients

tensorflow/tensorflow/go/graph.go:182–237  ·  view source on GitHub ↗

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

(prefix string, y []Output, x []Output, dx []Output)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestGraphAddGradientsFunction · 0.95
GradientsFunction · 0.45

Calls 5

makeFunction · 0.85
newStatusFunction · 0.85
freeMethod · 0.80
cMethod · 0.45
ErrMethod · 0.45