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

Class _open_file

torch/serialization.py:424–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422
423
424class _open_file(_opener):
425 def __init__(self, name, mode):
426 super().__init__(open(name, mode))
427
428 def __exit__(self, *args):
429 self.file_like.close()
430
431
432class _open_buffer_reader(_opener):

Callers 1

_open_file_likeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…