TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

tensorplay.accelerator.current_accelerator

tensorplay.accelerator.current_accelerator(check_available: bool = False)[source]

The accelerator device selected at build time, if any.

Returns None on a host-only build. With check_available set, a runtime availability probe is also required before the device is reported.

On this page

Ask DeepWiki