Skip to content

Commit

Permalink
Merge pull request #43 from Deepslient/master
Browse files Browse the repository at this point in the history
2-1 修改
  • Loading branch information
zhangyu345293721 authored Nov 29, 2024
2 parents e5e3956 + c7a7f86 commit bd6cb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 2-1,张量数据结构.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@
"id": "4a3cd4b9",
"metadata": {},
"source": [
"可以使用 shape属性或者 size()方法查看张量在每一维的长度.\n",
"可以使用 shape属性或者 size()方法查看张量在每一维的长度\n",
"\n",
"可以使用view方法改变张量的尺寸。\n",
"\n",
"如果view方法改变尺寸失败,可以使用reshape方法."
"如果view方法改变尺寸失败,可以使用reshape方法"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 4-1,张量的结构操作.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": null,
"id": "1cdbf318",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1063,7 +1063,7 @@
"#将分数小于60分的分数赋值成60分\n",
"b = torch.masked_fill(scores,scores<60,60)\n",
"#等价于b = scores.masked_fill(scores<60,60)\n",
"b\n"
"\n"
]
},
{
Expand Down

0 comments on commit bd6cb97

Please sign in to comment.