Skip to content

Commit 0b739d4

Browse files
Responsible ML InfraResponsible ML Infra Team
Responsible ML Infra
authored and
Responsible ML Infra Team
committed
Pass an interpreter argument to make the Interpreter.
PiperOrigin-RevId: 522258348
1 parent 2cb99e9 commit 0b739d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

g3doc/tutorials/Fairness_Indicators_Example_Colab.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
" hidden_units=[500, 100],\n",
353353
" weight_column='weight',\n",
354354
" feature_columns=[embedded_text_feature_column],\n",
355-
" optimizer=tf.keras.optimizers.Adagrad(learning_rate=0.003),\n",
355+
" optimizer=tf.keras.optimizers.legacy.Adagrad(learning_rate=0.003),\n",
356356
" loss_reduction=tf.losses.Reduction.SUM,\n",
357357
" n_classes=2,\n",
358358
" model_dir=model_dir)\n",

g3doc/tutorials/Fairness_Indicators_TFCO_CelebA_Case_Study.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@
819819
"# Create constrained optimizer and obtain train_op.\n",
820820
"# Separate optimizers are specified for the objective and constraints\n",
821821
"optimizer = tfco.ProxyLagrangianOptimizerV2(\n",
822-
" optimizer=tf.keras.optimizers.Adam(learning_rate=0.001),\n",
822+
" optimizer=tf.keras.optimizers.legacy.Adam(learning_rate=0.001),\n",
823823
" constraint_optimizer=tf.keras.optimizers.Adam(learning_rate=0.001),\n",
824824
" num_constraints=problem.num_constraints)\n",
825825
"\n",

0 commit comments

Comments
 (0)