Skip to content

Commit

Permalink
lazy import tensorflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Haohuan Wang committed Nov 22, 2024
1 parent 307b0bc commit e408416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clu/metric_writers/tf/summary_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
from clu.internal import utils
from clu.metric_writers import interface
from etils import epy
import tensorflow as tf

with epy.lazy_imports():
# pylint: disable=g-import-not-at-top
from tensorboard.plugins.hparams import api as hparams_api
from tensorboard.plugins.mesh import summary as mesh_summary # pylint: disable=line-too-long
import tensorflow as tf
# pylint: enable=g-import-not-at-top


Expand Down

0 comments on commit e408416

Please sign in to comment.