torch文档F.mse_loss(X,y) X(batchn) y(batchn)F.cross_entropy(X,y) X(batch*N) N为每一类的得分(模型的直接输出) y(batch) 0<=y[i]<=N-1cross_entropy = softmax + log +nllloss