"tests/git@developer.sourcefind.cn:norm/vllm.git" did not exist on "181b27d8813e6a92de4f38cecfa24914e652588a"
Commit fc846697 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Merge pull request #8565 from djdongjin:label_cast

PiperOrigin-RevId: 315024646
parents b4df77a0 55b7cb66
...@@ -477,7 +477,6 @@ class DatasetBuilder: ...@@ -477,7 +477,6 @@ class DatasetBuilder:
parsed = tf.io.parse_single_example(record, keys_to_features) parsed = tf.io.parse_single_example(record, keys_to_features)
label = tf.reshape(parsed['image/class/label'], shape=[1]) label = tf.reshape(parsed['image/class/label'], shape=[1])
label = tf.cast(label, dtype=tf.int32)
# Subtract one so that labels are in [0, 1000) # Subtract one so that labels are in [0, 1000)
label -= 1 label -= 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment