Could you replace the data loading with some random tensors and check if the error would still be reproducible? If so, could you then post it so that we could debug? If not, I would guess that your data loading is creating some inputs in float64, which might be creating the issue so you could try to narrow down which of these tensors is could be.