Shortcuts

torch.cpu

This package implements abstractions found in torch.cuda to facilitate writing device-agnostic code.

current_device

Returns current device for cpu.

current_stream

Returns the currently selected Stream for a given device.

is_available

Returns a bool indicating if CPU is currently available.

synchronize

Waits for all kernels in all streams on the CPU device to complete.

stream

Wrapper around the Context-manager StreamContext that selects a given stream.

set_device

Sets the current device, in CPU we do nothing.

device_count

Returns number of CPU devices (not cores).

StreamContext

Context-manager that selects a given stream.

Streams and events

Stream

N.B.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy