(parameter)
| 140 | |
| 141 | |
| 142 | def is_zero_param(parameter): |
| 143 | if not torch.is_tensor(parameter): |
| 144 | return False |
| 145 | return hasattr(parameter, 'ds_id') |
| 146 | |
| 147 | |
| 148 | def apply_to_tensors_only(function, value, warning_msg_fn=None): |
no outgoing calls
no test coverage detected