Tensorflow One Hot Encoder Pipeline