From 445ec57b7a3c55ca5f23802bca4688c535bdc4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= <berykubik@gmail.com> Date: Wed, 30 Nov 2022 11:12:06 +0100 Subject: [PATCH] Fix typo in TF docs --- docs.it4i/software/machine-learning/tensorflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.it4i/software/machine-learning/tensorflow.md b/docs.it4i/software/machine-learning/tensorflow.md index 8e7386269..7a8cfb7d7 100644 --- a/docs.it4i/software/machine-learning/tensorflow.md +++ b/docs.it4i/software/machine-learning/tensorflow.md @@ -112,7 +112,7 @@ train_dataset = mnist_train.map(scale).cache().shuffle(BUFFER_SIZE).batch(BATCH_ eval_dataset = mnist_test.map(scale).batch(BATCH_SIZE) # The following line makes sure that the model will run on multiple GPUs (if they are available) -# Without `strategy.scopy()`, the model would only be trained on a single GPU +# Without `strategy.scope()`, the model would only be trained on a single GPU with strategy.scope(): model = tf.keras.Sequential([ tf.keras.layers.Conv2D(32, 3, activation='relu', input_shape=(28, 28, 1)), -- GitLab