File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tensorboard_plugin/tensorboard_plugin_fairness_indicators Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 25
25
from tensorboard_plugin_fairness_indicators import plugin
26
26
from tensorboard_plugin_fairness_indicators import summary_v2
27
27
import six
28
+ from tensorflow import keras
28
29
import tensorflow .compat .v1 as tf
29
30
import tensorflow .compat .v2 as tf2
30
31
import tensorflow_model_analysis as tfma
@@ -77,7 +78,7 @@ def tearDown(self):
77
78
78
79
def _export_keras_model (self , classifier ):
79
80
temp_eval_export_dir = os .path .join (self .get_temp_dir (), "eval_export_dir" )
80
- classifier .compile (optimizer = tf . keras .optimizers .Adam (), loss = "mse" )
81
+ classifier .compile (optimizer = keras .optimizers .Adam (), loss = "mse" )
81
82
tf .saved_model .save (classifier , temp_eval_export_dir )
82
83
return temp_eval_export_dir
83
84
You can’t perform that action at this time.
0 commit comments