Raise TypeError("Cannot handle this data type") TypeError: Cannot handle this data type

torchvision.utils.save_image(, file_name) throws this error. while saving outputs from the network.

What are you passing to this method?
Could you print the type of the object so that we could debug it?