Shortcuts

torch.accelerator

This package introduces support for the current accelerator in python.

device_count

Return the number of current accelerator available.

is_available

Check if the current accelerator is available at runtime: it was build, all the required drivers are available and at least one device is visible.

current_accelerator

Return the device of the accelerator available at compilation time.

set_device_index

Set the current device index to a given device.

set_device_idx

Set the current device index to a given device.

current_device_index

Return the index of a currently selected device for the current accelerator.

current_device_idx

Return the index of a currently selected device for the current accelerator.

set_stream

Set the current stream to a given stream.

current_stream

Return the currently selected stream for a given device.

synchronize

Wait for all kernels in all streams on the given device to complete.

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