Skip to content

Commit

Permalink
This fix adjusts import to avoid accidentally pulling in keras in clu.
Browse files Browse the repository at this point in the history
…#336

PiperOrigin-RevId: 617332775
  • Loading branch information
CLU Authors authored and copybara-github committed Mar 21, 2024
1 parent c50acb7 commit bd50c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clu/metric_writers/tf/summary_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from clu.metric_writers import interface
import tensorflow as tf

from tensorboard.plugins.hparams import api as hparams_api
from tensorboard.plugins.hparams import summary_v2


Array = interface.Array
Expand Down Expand Up @@ -95,7 +95,7 @@ def write_histograms(

def write_hparams(self, hparams: Mapping[str, Any]):
with self._summary_writer.as_default():
hparams_api.hparams(dict(utils.flatten_dict(hparams)))
summary_v2.hparams(dict(utils.flatten_dict(hparams)))

def flush(self):
self._summary_writer.flush()
Expand Down

0 comments on commit bd50c69

Please sign in to comment.