Class faiss::gpu::DeviceScope

class faiss::gpu::DeviceScope

RAII object to set the current device, and restore the previous device upon destruction

Public Functions

explicit DeviceScope(int device)
~DeviceScope()

Private Members

int prevDevice_