- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for apply_gradients (0.3 sec)
-
tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py
correct_prediction = tf.equal(tf.argmax(logits, 1), tf.argmax(labels, 1)) accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32)) optimizer.apply_gradients(zip(grads, model.trainable_variables)) return accuracy, loss_value @tf.function def distributed_train_step(dist_inputs): per_replica_accuracy, per_replica_losses = strategy.run(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 20 03:05:18 UTC 2021 - 6.5K bytes - Viewed (0) -
RELEASE.md
## Known Caveats * `tf.keras.mixed_precision` * When using mixed precision, calling `RMSprop.apply_gradients` or `Nadam.apply_gradients` outside a `tf.function` does not work and will raise the AttributeError "Tensor.op is meaningless when eager execution is enabled". See this
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 730.3K bytes - Viewed (0)