Skip to content

fix DALI example #4918

@Borda

Description

@Borda

🐛 Bug

failing DALI example after upgrading to 0.28

self = <pl_examples.basic_examples.dali_image_classifier.DALIClassificationLoader object at 0x7f1180070b90> | 820s

| def __len__(self):
| batch_count = self._size // (self._num_gpus * self.batch_size)
| >       last_batch = 1 if self._fill_last_batch else 0
| E       AttributeError: 'DALIClassificationLoader' object has no attribute '_fill_last_batch'
| pl_examples/basic_examples/dali_image_classifier.py:104: AttributeError

To Reproduce

https://github.com/PyTorchLightning/pytorch-lightning/blob/94a9d3d2837eb962cb47ad2854569039a552f729/pl_examples/basic_examples/dali_image_classifier.py#L102-L105

Additional context

it happened after v0.28 release
https://github.com/NVIDIA/DALI/releases/tag/v0.28.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions