Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RingBDStack/GDAP
/ grad_status
Function
grad_status
seq2seq/utils.py:569–570 ·
view source on GitHub ↗
(model: nn.Module)
Source
from the content-addressed store, hash-verified
567
568
569
def
grad_status(model: nn.Module) -> Iterable:
570
return
(par.requires_grad
for
par in model.parameters())
571
572
573
def
any_requires_grad(model: nn.Module) -> bool:
Callers
3
any_requires_grad
Function · 0.85
assert_all_frozen
Function · 0.85
assert_not_all_frozen
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected