loss_object = torch.nn.NLLLoss() lsoftmax = torch.nn.LogSoftmax(dim=-1) loss ... .SparseCategoricalCrossentropy(from_logits=True ...
確定! 回上一頁