torch.cpu¶
This package implements abstractions found in torch.cuda
to facilitate writing device-agnostic code.
Returns current device for cpu. |
|
Returns the currently selected |
|
Returns a bool indicating if CPU is currently available. |
|
Waits for all kernels in all streams on the CPU device to complete. |
|
Wrapper around the Context-manager StreamContext that selects a given stream. |
|
Sets the current device, in CPU we do nothing. |
|
Returns number of CPU devices (not cores). |
|
Context-manager that selects a given stream. |