const Device & default_device()
 
void set_default_device(const Device &d)
 
bool operator==(const Device &lhs, const Device &rhs)
 
bool operator!=(const Device &lhs, const Device &rhs)
 
static constexpr DeviceType gpu
Definition device.h:14
 
Device(DeviceType type, int index=0)
Definition device.h:16
 
int index
Definition device.h:19
 
static constexpr DeviceType cpu
Definition device.h:13
 
DeviceType type
Definition device.h:18
 
DeviceType
Definition device.h:8