MCPcopy Create free account
hub / github.com/pytorch/pytorch / __init__

Method __init__

torch/_dynamo/debug_utils.py:529–538  ·  view source on GitHub ↗
(self, save_dir=None, *, pbar=None)

Source from the content-addressed store, hash-verified

527# transferring around
528class 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:

Callers

nothing calls this directly

Calls 2

ContentStoreReaderClass · 0.90
warningMethod · 0.80

Tested by

no test coverage detected