amd gpu-stats bugfix

This commit is contained in:
torzdf 2022-06-18 11:16:03 +01:00
parent d9c84a5f9f
commit 9d55ade27f
3 changed files with 4 additions and 3 deletions

View File

@ -162,8 +162,8 @@ class Converter():
loglevel("Convert error traceback:", exc_info=True)
log_once = True
# UNCOMMENT THIS CODE BLOCK TO PRINT TRACEBACK ERRORS
import sys ; import traceback
exc_info = sys.exc_info() ; traceback.print_exception(*exc_info)
# import sys; import traceback
# exc_info = sys.exc_info(); traceback.print_exception(*exc_info)
logger.trace("Out queue put: %s", item["filename"])
out_queue.put((item["filename"], image))
logger.debug("Completed convert process")

View File

@ -106,7 +106,7 @@ class AMDStats(_GPUStats):
@property
def _all_vram(self) -> List[int]:
""" list: The VRAM of each GPU device that PlaidML has discovered. """
return [int(device.get("globalMemSize", 0) / (1024 * 1024))
return [int(int(device.get("globalMemSize", 0)) / (1024 * 1024))
for device in self._device_details]
@property

View File

@ -122,6 +122,7 @@ class Mask(Editor):
default="Circle",
is_radio=True,
helptext=_("Select a shape for masking cursor.")))
def _set_tk_mask_change_callback(self):
""" Add a trace to change the displayed mask on a mask type change. """
var = self._control_vars["display"]["MaskType"]