(parameter)
| 157 | |
| 158 | |
| 159 | def is_zero_param(parameter): |
| 160 | if not torch.is_tensor(parameter): |
| 161 | return False |
| 162 | return hasattr(parameter, 'ds_id') |
| 163 | |
| 164 | |
| 165 | def apply_to_tensors_only(function, value, warning_msg_fn=None): |
no outgoing calls
no test coverage detected