MCPcopy
hub / github.com/tinygrad/tinygrad / __del__

Method __del__

tinygrad/runtime/ops_nv.py:83–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 super().__init__()
82
83 def __del__(self):
84 if self.binded_device is not None: self.binded_device.allocator.free(self.hw_page, self.hw_page.size, BufferSpec(cpu_access=True, nolru=True))
85
86 def nvm(self, subchannel, mthd, *args, typ=2): self.q((typ << 28) | (len(args) << 16) | (subchannel << 13) | (mthd >> 2), *args)
87

Callers

nothing calls this directly

Calls 2

BufferSpecClass · 0.90
freeMethod · 0.45

Tested by

no test coverage detected