def to_one_hot(image,label):
return image,tf.one_hot(classes_to_indices[label],depth=14)
train_ds = train_ds.map(to_one_hot)
calsses_to_indices is a simple python dictionary containing   { label_name: indices }
this code is showing an error:-
Tensor is unhashable. Instead, use tensor.ref() as the key.
is there any way to do one_hot encoding while using tf.data API ?