Returns True if the latest ``step()`` produced in parameter updates. Note that a ``False`` return is not an error condition. Steps are frequently no-ops, such as between gradient accumulation boundaries or when overflows occur. Returns: bool: Whether the l
(self)
| 2885 | return self._config.dataloader_drop_last |
| 2886 | |
| 2887 | def was_step_applied(self) -> bool: |
| 2888 | """Returns True if the latest ``step()`` produced in parameter updates. |
| 2889 | Note that a ``False`` return is not an error condition. Steps are frequently |
| 2890 | no-ops, such as between gradient accumulation boundaries or when overflows |
| 2891 | occur. |
| 2892 | Returns: |
| 2893 | bool: Whether the latest ``step()`` modified model parameters. |
| 2894 | """ |
| 2895 | return self._step_applied |
| 2896 | |
| 2897 | def deepspeed_io(self, |
| 2898 | dataset, |
no outgoing calls