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

Method __init__

test/mockgpu/mockgpu.py:62–64  ·  view source on GitHub ↗
(self, path:str="", flags:int=os.O_RDONLY, fd:int|None=None)

Source from the content-addressed store, hash-verified

60
61class MockFileIOInterface(FileIOInterface):
62 def __init__(self, path:str="", flags:int=os.O_RDONLY, fd:int|None=None):
63 self.path = path
64 self.fd = fd or _open(path, flags)
65
66 def __del__(self):
67 if self.fd in tracked_fds:

Callers

nothing calls this directly

Calls 1

_openFunction · 0.85

Tested by

no test coverage detected