MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / backward_hook_wrapper

Method backward_hook_wrapper

python/paddle/base/framework.py:2113–2115  ·  view source on GitHub ↗

call the backward hook in .

(dy)

Source from the content-addressed store, hash-verified

2111 import paddle
2112
2113 def backward_hook_wrapper(dy):
2114 """call the backward hook in ."""
2115 return hook(np.array(dy))
2116
2117 def forward_hook_wrapper(x):
2118 """do nothing but return a new variable."""

Callers

nothing calls this directly

Calls 1

hookFunction · 0.85

Tested by

no test coverage detected