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

Function _load_from_bytes

torch/storage.py:370–371  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

368 return super()._share_filename_cpu_(*args, **kwargs)
369
370def _load_from_bytes(b):
371 return torch.load(io.BytesIO(b))
372
373
374_StorageBase.type = _type # type: ignore[assignment]

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…