Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ _apply
Method
_apply
tensorpack/tfutils/optimizer.py:71–74 ·
view source on GitHub ↗
(self, g)
Source
from the content-addressed store, hash-verified
69
return
self._opt.apply_gradients(g, global_step, name)
70
71
def
_apply(self, g):
72
for
proc in self._gradprocs:
73
g = proc.process(g)
74
return
g
75
76
return
_ApplyGradientProcessor(opt, gradprocs)
77
Callers
1
apply_gradients
Method · 0.95
Calls
1
process
Method · 0.45
Tested by
no test coverage detected