We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c50acb7 commit 52dc0deCopy full SHA for 52dc0de
clu/metric_writers/tf/summary_writer.py
@@ -27,7 +27,7 @@
27
from clu.metric_writers import interface
28
import tensorflow as tf
29
30
-from tensorboard.plugins.hparams import api as hparams_api
+from tensorboard.plugins.hparams import summary_v2
31
32
33
Array = interface.Array
@@ -95,7 +95,7 @@ def write_histograms(
95
96
def write_hparams(self, hparams: Mapping[str, Any]):
97
with self._summary_writer.as_default():
98
- hparams_api.hparams(dict(utils.flatten_dict(hparams)))
+ summary_v2.hparams(dict(utils.flatten_dict(hparams)))
99
100
def flush(self):
101
self._summary_writer.flush()
0 commit comments