Skip to content

Commit

Permalink
Merge pull request #44 from Deepslient/master
Browse files Browse the repository at this point in the history
4-2整理
  • Loading branch information
zhangyu345293721 authored Dec 5, 2024
2 parents bd6cb97 + cac29e4 commit 157c930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 4-2,张量的数学运算.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# 4-2,张量的数学运算\n",
"\n",
"张量数学运算主要有:标量运算,向量运算,矩阵运算,以及 使用非常强大而灵活的爱因斯坦求和函数torch.einsum进行任意维的张量运算。\n",
"张量数学运算主要有:标量运算,向量运算,矩阵运算,以及使用非常强大而灵活的爱因斯坦求和函数torch.einsum进行任意维的张量运算。\n",
"\n",
"此外我们还会介绍张量运算的广播机制。\n",
"\n",
Expand Down
3 changes: 1 addition & 2 deletions 5-1,Dataset和DataLoader.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "2d4aca1b",
"metadata": {},
"outputs": [
Expand All @@ -458,7 +458,6 @@
],
"source": [
"# 根据Tensor创建数据集\n",
"\n",
"from sklearn import datasets \n",
"iris = datasets.load_iris()\n",
"ds_iris = TensorDataset(torch.tensor(iris.data),torch.tensor(iris.target))\n",
Expand Down

0 comments on commit 157c930

Please sign in to comment.