Shortcuts

Enum DeviceType

Enum Documentation

enum class c10::DeviceType : int8_t

Values:

enumerator CPU
enumerator CUDA
enumerator MKLDNN
enumerator OPENGL
enumerator OPENCL
enumerator IDEEP
enumerator HIP
enumerator FPGA
enumerator MAIA
enumerator XLA
enumerator Vulkan
enumerator Metal
enumerator XPU
enumerator MPS
enumerator Meta
enumerator HPU
enumerator VE
enumerator Lazy
enumerator IPU
enumerator MTIA
enumerator PrivateUse1
enumerator COMPILE_TIME_MAX_DEVICE_TYPES

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