pytorch常用函数:torch.nn.functional.binary_cross_entropy_with_logits
torch.nn.functional.binary_cross_entropy_with_logits它的参数有:input,target,weight,size_average,reduce,reduction,pos_weight,下面分别说一下每个参数的用法inputinput–任意形状的张量目标–与输入形状相同的张量targettarget:与输入形状相同的张量weightweight(