The input to your loss functions are floats and that’s perfectly normal since those are the predictions of your model. Again, that error indicates it’s the target are floats instead of ints.
If you want additional help, please post the code you are training to run.