loss = F.binary_cross_entropy_with_logits(input, target)
input错写成了Long类型,target错写成了Int类型
input与target需要的是float类型
- BCEWithLogitsLoss type RuntimeError desired resultbcewithlogitsloss type runtimeerror desired bcewithlogitsloss bcewithlogitsloss实例bceloss问题 desired_capabilities desired_capabilities capabilities unexpected desir desir_caps desired desired_capabilities deprecationwarning capabilities desir_caps desir caps