MCPcopy Index your code
hub / github.com/RingBDStack/GDAP / assert_not_all_frozen

Function assert_not_all_frozen

seq2seq/utils.py:584–587  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

582
583
584def assert_not_all_frozen(model):
585 model_grads: List[bool] = list(grad_status(model))
586 npars = len(model_grads)
587 assert any(model_grads), f"none of {npars} weights require grad"
588
589
590def parse_numeric_n_bool_cl_kwargs(unparsed_args: List[str]) -> Dict[str, Union[int, float, bool]]:

Callers

nothing calls this directly

Calls 1

grad_statusFunction · 0.85

Tested by

no test coverage detected