Been looking, but can't seem to find any examples of how to decode or convert back to a single integer from a one-hot value in TensorFlow.
I used tf.one_hot
and was able to train my model but am a bit confused on how to make sense of the label after my classification. My data is being fed in via a TFRecords
file that I created. I thought about storing a text label in the file but wasn't able to get it to work. It appeared as if TFRecords
couldn't store text string or maybe I was mistaken.