BCEWithLogitsLoss报错RuntimeError: result type Float can't be cast to the desired output type Long
loss = F.binary_cross_entropy_with_logits(input, target)
input错写成了Long类型,target错写成了Int类型
input与target需要的是float类型
loss = F.binary_cross_entropy_with_logits(input, target)
input错写成了Long类型,target错写成了Int类型
input与target需要的是float类型