How to convert labels into one-hot encoded tensors

Hi,

This topic has been discussed previously. Have a look at this thread.