Skip to content

Commit

Permalink
改正错别字
Browse files Browse the repository at this point in the history
  • Loading branch information
yaleimeng authored Mar 11, 2019
1 parent ff9548f commit 3bdacbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapter2/2.1.2-pytorch-basics-autograd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"在张量创建时,通过设置 requires_grad 标识为Ture来告诉Pytorch需要对该张量进行自动的求导,PyTorch回记录该张量的每一步操作历史并自动计算"
"在张量创建时,通过设置 requires_grad 标识为Ture来告诉Pytorch需要对该张量进行自动求导,PyTorch会记录该张量的每一步操作历史并自动计算"
]
},
{
Expand Down Expand Up @@ -98,7 +98,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"我们看到 该张量的grad_fn已经被赋予了一个新的函数下面我们来调用反向传播函数,计算其梯度"
"我们看到 该张量的grad_fn已经被赋予了一个新的函数下面我们来调用反向传播函数,计算其梯度"
]
},
{
Expand Down Expand Up @@ -225,7 +225,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"我们可以使用`with torch.no_grad()`禁止已经设置requires_grad=True的向量进行自动求导,这个方法在测试集测试准确率的时候回经常用到,例如"
"我们可以使用`with torch.no_grad()`上下文管理器临时禁止对已设置requires_grad=True的张量进行自动求导。这个方法在测试集测试准确率的时候回经常用到,例如"
]
},
{
Expand Down

0 comments on commit 3bdacbf

Please sign in to comment.