(self)
| 2952 | return isinstance(obj, torch.utils.data.IterableDataset) # hasattr(obj, "__iter__") should work as well |
| 2953 | |
| 2954 | def dataloader_drop_last(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. |