print GPU device at startup

This commit is contained in:
Lincoln Stein 2023-07-01 20:47:11 -04:00
parent 5de820f2dc
commit 1cf61feead

View File

@ -168,6 +168,8 @@ class ModelManagerService(ModelManagerServiceBase):
logger.debug(f'config file={config_file}') logger.debug(f'config file={config_file}')
device = torch.device(choose_torch_device()) device = torch.device(choose_torch_device())
logger.debug(f'GPU device = {device}')
precision = config.precision precision = config.precision
if precision == "auto": if precision == "auto":
precision = choose_precision(device) precision = choose_precision(device)