1,处理多分类问题: # 10月27 import torch # criterion = torch.nn.CrossEntropyLoss() # Y = torch.LongTensor([2,0,1]) # Y_pred1 = torch.Tensor([ # [0.1,0.2,0.9], # [1.1,0.1,0.2], # [0.2,2.1,0.1] # ]) # Y_pred2 = torch.Tensor([ # [0.8,0.2,0.3], # [0.2,0.3,0.5], # [0.2,0.2,0.5] # ]) # l1...