MCPcopy
hub / github.com/tinygrad/tinygrad / count

Method count

tinygrad/device.py:314–318  ·  view source on GitHub ↗

Returns the number of physical accelerators available to the runtime.

(self)

Source from the content-addressed store, hash-verified

312 f"No renderer for {self.device} is available", self.cached_renderer, t)
313
314 def count(self) -> int:
315 """
316 Returns the number of physical accelerators available to the runtime.
317 """
318 return 1
319
320 def synchronize(self):
321 """

Callers 7

__call__Method · 0.45
call_gradientFunction · 0.45
enumerate_devices_strFunction · 0.45
test_countMethod · 0.45

Calls

no outgoing calls