- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for distributed_train_step (0.27 sec)
-
tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py
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( train_step, args=(dist_inputs,)) accuracy = strategy.reduce( tf.distribute.ReduceOp.MEAN, per_replica_accuracy, axis=None)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 20 03:05:18 UTC 2021 - 6.5K bytes - Viewed (0)