From aa227a0cdbbad8805e947f845160274fc11446c5 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 4 Jul 2024 15:27:52 +0300 Subject: [PATCH] Fix tensorboard numpy 2.0 incompatibility breaking binding --- clearml/binding/frameworks/tensorflow_bind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clearml/binding/frameworks/tensorflow_bind.py b/clearml/binding/frameworks/tensorflow_bind.py index 385d1d71..1657fadd 100644 --- a/clearml/binding/frameworks/tensorflow_bind.py +++ b/clearml/binding/frameworks/tensorflow_bind.py @@ -738,13 +738,14 @@ def get_data(value_dict, metric_search_order): LoggerRoot.get_base_logger(TensorflowBinding).debug( 'No tag for \'value\' existing keys %s' % ', '.join(vdict.keys())) continue + # noinspection PyBroadException try: from tensorboard.plugins.hparams.metadata import SESSION_START_INFO_TAG if tag == SESSION_START_INFO_TAG: self._add_hparams(vdict) continue - except ImportError: + except Exception: pass metric, values = get_data(vdict, supported_metrics) if metric == 'simpleValue':