Return the length of current dataset.
(self)
| 75 | return self.pipeline(results) |
| 76 | |
| 77 | def __len__(self): |
| 78 | """Return the length of current dataset.""" |
| 79 | if self.test_mode: |
| 80 | return len(self.eval_indexes) |
| 81 | elif self.fixed_length is not None: |
| 82 | return self.fixed_length |
| 83 | return len(self.data_infos) |
| 84 | |
| 85 | def __getitem__(self, idx: int): |
| 86 | """Prepare data for the ``idx``-th data. |
nothing calls this directly
no outgoing calls
no test coverage detected