latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.accelerator.memory
Device-agnostic memory queries for the current accelerator.
Every function below targets the active accelerator backend (the GPU
backend in this build) and accepts a device object, a spelling such
as "cuda:1", an integer index, or None for the current device.
Functions
|
Release unoccupied cached device memory held by the allocator. |
|
Release unoccupied cached host memory. |
|
Free and total device memory in bytes for the given device. |
|
Peak bytes occupied by live tensors on the given device. |
|
Peak bytes managed by the allocator on the given device. |
|
Bytes currently occupied by live tensors on the given device. |
|
Bytes currently managed by the allocator on the given device. |
|
Allocator statistics for the given device. |
|
Reset historical accumulation counters on the given device. |
|
Reset peak counters on the given device. |
Help improve this page
Found an error, an unclear step, or a missing example?

