Skip to content

Commit f1e668f

Browse files
8bitmp3copybara-github
authored andcommitted
Fix Spectral-normalized Neural Gaussian Process tutorial build
PiperOrigin-RevId: 496991390
1 parent 5d5a79d commit f1e668f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/tutorials/understanding/sngp.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
},
144144
"outputs": [],
145145
"source": [
146-
"!pip install --use-deprecated=legacy-resolver tf-models-official"
146+
"!pip install -U -q --use-deprecated=legacy-resolver tf-models-official tensorflow"
147147
]
148148
},
149149
{
@@ -480,7 +480,7 @@
480480
"source": [
481481
"loss = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)\n",
482482
"metrics = tf.keras.metrics.SparseCategoricalAccuracy(),\n",
483-
"optimizer = tf.keras.optimizers.Adam(learning_rate=1e-4)\n",
483+
"optimizer = tf.keras.optimizers.legacy.Adam(learning_rate=1e-4)\n",
484484
"\n",
485485
"train_config = dict(loss=loss, metrics=metrics, optimizer=optimizer)"
486486
]

0 commit comments

Comments
 (0)