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

Method __del__

tinygrad/runtime/ops_amd.py:56–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 super().__init__()
55
56 def __del__(self):
57 if self.binded_device is not None:
58 self.binded_device.allocator.free(self.hw_page, self.hw_page.size, BufferSpec(cpu_access=True, nolru=True, uncached=True))
59
60 def pkt3(self, cmd, *vals): self.q(self.pm4.PACKET3(cmd, len(vals) - 1), *vals)
61

Callers

nothing calls this directly

Calls 2

BufferSpecClass · 0.90
freeMethod · 0.45

Tested by

no test coverage detected