Rate this Page

Typedef c10::DeviceIndex#

Typedef Documentation#

using c10::DeviceIndex = int8_t#

An index representing a specific device; e.g., the 1 in GPU 1.

A DeviceIndex is not independently meaningful without knowing the DeviceType it is associated; try to use Device rather than DeviceIndex directly.