(kind, dataset, auto_collation, collate_fn, drop_last)
| 65 | |
| 66 | @staticmethod |
| 67 | def create_fetcher(kind, dataset, auto_collation, collate_fn, drop_last): |
| 68 | if kind == _DatasetKind.Map: |
| 69 | return _utils.fetch._MapDatasetFetcher( |
| 70 | dataset, auto_collation, collate_fn, drop_last |
| 71 | ) |
| 72 | else: |
| 73 | return _utils.fetch._IterableDatasetFetcher( |
| 74 | dataset, auto_collation, collate_fn, drop_last |
| 75 | ) |
| 76 | |
| 77 | |
| 78 | class _InfiniteConstantSampler(Sampler): |
no outgoing calls
no test coverage detected