Skip to content

Commit

Permalink
Merge pull request #625 from mselensky/gh-pages
Browse files Browse the repository at this point in the history
tab indent typo fix for example TensorFlow script
  • Loading branch information
yandthj authored May 14, 2024
2 parents 8cda9fa + 3da2039 commit c9f9140
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/Friendly_User/gpu_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ Now we are ready to run the Tensorflow container. We will run the script below,
gradients = tape.gradient(loss, model.trainable_variables)
optimizer.apply_gradients(zip(gradients, model.trainable_variables))

train_loss(loss)
train_accuracy(labels, predictions)
train_loss(loss)
train_accuracy(labels, predictions)

# test the model
@tf.function
Expand All @@ -163,8 +163,8 @@ Now we are ready to run the Tensorflow container. We will run the script below,
predictions = model(images, training=False)
t_loss = loss_object(labels, predictions)

test_loss(t_loss)
test_accuracy(labels, predictions)
test_loss(t_loss)
test_accuracy(labels, predictions)


t0 = time.time()
Expand Down

0 comments on commit c9f9140

Please sign in to comment.