torch.cpu
This package implements abstractions found in torch.cuda
to facilitate writing device-agnostic code.
Returns current device for 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 an immutable mapping of CPU capabilities detected at runtime. |
Returns a bool indicating if CPU is currently available. |
Returns True if the CPU is initialized. |
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. |
N.B. |