From 7e5c3c9b831f78c6bce3ed7e16c8af29b3848096 Mon Sep 17 00:00:00 2001 From: Auroir <36361058+Auroir@users.noreply.github.com> Date: Fri, 16 Aug 2019 01:11:13 -0700 Subject: [PATCH] Fix indent --- models/ModelBase.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/models/ModelBase.py b/models/ModelBase.py index 7e7d2f5..e7ad843 100644 --- a/models/ModelBase.py +++ b/models/ModelBase.py @@ -262,11 +262,11 @@ class ModelBase(object): if self.device_config.cpu_only: model_summary_text += [f'=={"Using device": >{width_name}}: {"CPU": <{width_value}}=='] # cpu_only else: - for idx in self.device_config.gpu_idxs: - model_summary_text += [f'=={"Device index": >{width_name}}: {idx: <{width_value}}=='] # GPU hardware device index - model_summary_text += [f'=={"Name": >{width_name}}: {nnlib.device.getDeviceName(idx): <{width_value}}=='] # GPU name - vram_str = f'{nnlib.device.getDeviceVRAMTotalGb(idx):.2f}GB' # GPU VRAM - Formated as #.## (or ##.##) - model_summary_text += [f'=={"VRAM": >{width_name}}: {vram_str: <{width_value}}=='] + for idx in self.device_config.gpu_idxs: + model_summary_text += [f'=={"Device index": >{width_name}}: {idx: <{width_value}}=='] # GPU hardware device index + model_summary_text += [f'=={"Name": >{width_name}}: {nnlib.device.getDeviceName(idx): <{width_value}}=='] # GPU name + vram_str = f'{nnlib.device.getDeviceVRAMTotalGb(idx):.2f}GB' # GPU VRAM - Formated as #.## (or ##.##) + model_summary_text += [f'=={"VRAM": >{width_name}}: {vram_str: <{width_value}}=='] model_summary_text += [f'=={" "*width_total}=='] model_summary_text += [f'=={"="*width_total}==']