(model)
| 582 | |
| 583 | |
| 584 | def 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 | |
| 590 | def parse_numeric_n_bool_cl_kwargs(unparsed_args: List[str]) -> Dict[str, Union[int, float, bool]]: |
nothing calls this directly
no test coverage detected