Python torch.nn 模块,BCELoss() 实例源码
https://www.codingdict.com/sources/py/torch.nn/8356.html
(七)详解pytorch中的交叉熵损失函数nn.BCELoss()、nn.BCELossWithLogits(),二分类任务如何定义损失函数,如何计算准确率、如何预测
https://www.cnblogs.com/zhangxianrong/p/14773075.html