Print out the device type which is used

Print out the device type which is used for generating images.
This commit is contained in:
Daniel Manzke 2022-10-12 22:38:33 +02:00 committed by Lincoln Stein
parent c82e94811b
commit 057fc95aa3

View File

@ -172,6 +172,7 @@ class Generate:
# device to Generate(). However the device was then ignored, so
# it wasn't actually doing anything. This logic could be reinstated.
device_type = choose_torch_device()
print(f'>> Using device_type {device_type}')
self.device = torch.device(device_type)
if full_precision:
if self.precision != 'auto':