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

Method exists

test/mockgpu/mockgpu.py:110–110  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

108 return FileIOInterface._mmap(start, sz, prot, flags & ~0x4a000, -1, offset) # strip MAP_LOCKED|MAP_POPULATE|MAP_HUGETLB
109 @staticmethod
110 def exists(path): return _open(path, os.O_RDONLY) is not None
111 @staticmethod
112 def readlink(path): raise NotImplementedError()
113 @staticmethod

Callers 15

_test_exampleMethod · 0.45
loadFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
hive_reset.pyFile · 0.45
get_bar0_sizeFunction · 0.45
patch.pyFile · 0.45
get_train_filesFunction · 0.45
iterateFunction · 0.45
process_partFunction · 0.45
gdrive_downloadFunction · 0.45

Calls 1

_openFunction · 0.85

Tested by 2

_test_exampleMethod · 0.36
__init__Method · 0.36