MCPcopy 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
569def grad_status(model: nn.Module) -> Iterable:
570 return (par.requires_grad for par in model.parameters())
571
572
573def any_requires_grad(model: nn.Module) -> bool:

Callers 3

any_requires_gradFunction · 0.85
assert_all_frozenFunction · 0.85
assert_not_all_frozenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected