- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ONE_HOT (0.08 sec)
-
tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py
optimizer = tf.keras.optimizers.Adam(learning_rate=learning_rate) def train_step(features): inputs = tf.image.convert_image_dtype( features['image'], dtype=tf.float32, saturate=False) labels = tf.one_hot(features['label'], num_classes) with tf.GradientTape() as tape: logits = model(inputs) loss_value = tf.reduce_mean( tf.nn.softmax_cross_entropy_with_logits(labels, logits))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 20 03:05:18 UTC 2021 - 6.5K bytes - Viewed (0)