Skip to content

Commit 92a492c

Browse files
authored
Merge pull request #87 from kpol-lgx/patch-1
Update 2.2_tensor.ipynb
2 parents eaafbc7 + ee569c1 commit 92a492c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/chapter02_prerequsite/2.2_tensor.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"cell_type": "markdown",
3939
"metadata": {},
4040
"source": [
41-
"我们先介绍NDArray的最基本功能,我们用arange函数创建一个行向量"
41+
"我们先介绍NDArray的最基本功能,我们用ange函数创建一个行向量"
4242
]
4343
},
4444
{
@@ -57,7 +57,7 @@
5757
}
5858
],
5959
"source": [
60-
"x = tf.constant(range(12))\n",
60+
"x = tf.range(12)\n",
6161
"\n",
6262
"print(x.shape)"
6363
]

0 commit comments

Comments
 (0)