Commit 55b7cb66 authored by Jin Dong's avatar Jin Dong
Browse files

remove cast in preprocess

parent a2d0168e
......@@ -477,7 +477,6 @@ class DatasetBuilder:
parsed = tf.io.parse_single_example(record, keys_to_features)
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)
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