Fix report index not advancing in resource monitoring causes more than one GPU not to be reported

This commit is contained in:
clearml 2024-10-28 18:11:00 +02:00
parent bf8d9c96e9
commit 0ff428bb96

View File

@ -401,6 +401,7 @@ class ResourceMonitor(object):
fractions = self._fractions_handler.fractions
stats["gpu_fraction_{}".format(report_index)] = \
(fractions[i] if i < len(fractions) else fractions[-1]) if fractions else 1.0
report_index += 1
except Exception as ex:
# something happened and we can't use gpu stats,