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)
| 2955 | return self._config.dataloader_drop_last |
| 2956 | |
| 2957 | def was_step_applied(self) -> bool: |
| 2958 | """Returns True if the latest ``step()`` produced in parameter updates. |
| 2959 | Note that a ``False`` return is not an error condition. Steps are frequently |
| 2960 | no-ops, such as between gradient accumulation boundaries or when overflows |
| 2961 | occur. |
| 2962 | Returns: |
| 2963 | bool: Whether the latest ``step()`` modified model parameters. |
| 2964 | """ |
| 2965 | return self._step_applied |
| 2966 | |
| 2967 | def deepspeed_io(self, |
| 2968 | dataset, |
no outgoing calls