Skip to content

Commit

Permalink
谢谢! Merge pull request #661 from xiaoxstz/patch-1
Browse files Browse the repository at this point in the history
Update optimization_tutorial.md
  • Loading branch information
jiangzhonglian authored Dec 15, 2023
2 parents 47ff002 + 4652062 commit a617098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ epochs = 5
我们把模型输出的 logits 传递给 `nn.CrossEntropyLoss`, 它会正则化 logits 并计算预测误差。

```py
# 初始货损失函数
# 初始化损失函数
loss_fn = nn.CrossEntropyLoss()
```

Expand Down

1 comment on commit a617098

@vercel
Copy link

@vercel vercel bot commented on a617098 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pytorch-doc-zh – ./

pytorch-doc-zh-apachecn.vercel.app
pytorch-doc-zh.vercel.app
pytorch-doc-zh-git-master-apachecn.vercel.app

Please sign in to comment.