Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/MingchaoZhu/DeepLearning
/ backward
Method
backward
code/chapter9.py:924–930 ·
view source on GitHub ↗
(self, grad)
Source
from the content-addressed store, hash-verified
922
return
out, Xs
923
924
def
backward(self, grad):
925
dXs = {}
926
out = grad
927
for
k, v in reversed(list(self.layers.items())):
928
dXs[k] = out
929
out = v.backward(out)
930
return
out, dXs
931
932
def
update(self):
933
""
"
Callers
2
fit
Method · 0.95
backward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected