(self, save_dir=None, *, pbar=None)
| 527 | # transferring around |
| 528 | class InputReader: |
| 529 | def __init__(self, save_dir=None, *, pbar=None): |
| 530 | # If None, we will generate random data instead. It's important |
| 531 | # to natively support this use case as it will allow people to |
| 532 | # share repros without including the real data, if the problem |
| 533 | # reproduces even on random data. |
| 534 | if save_dir is None: |
| 535 | log.warning("no save_dir specified, will generate random data") |
| 536 | self.store = ContentStoreReader(save_dir) if save_dir is not None else None |
| 537 | self.args = [] |
| 538 | self.pbar = pbar |
| 539 | |
| 540 | def storage(self, storage_hash, nbytes, *, device=None, dtype_hint=None): |
| 541 | if self.pbar is not None: |
nothing calls this directly
no test coverage detected