(parameter)
| 148 | |
| 149 | |
| 150 | def is_zero_param(parameter): |
| 151 | if not torch.is_tensor(parameter): |
| 152 | return False |
| 153 | return hasattr(parameter, 'ds_id') |
| 154 | |
| 155 | |
| 156 | def apply_to_tensors_only(function, value, warning_msg_fn=None): |
no outgoing calls
no test coverage detected