[go: nahoru, domu]

Skip to content

Commit

Permalink
Remove unnecasary cast to tf.Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
guoci committed Jul 16, 2020
1 parent 8db3392 commit 8fbee6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/en/guide/tensor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@
"outputs": [],
"source": [
"# Shape returns a `TensorShape` object that shows the size on each dimension\n",
"var_x = tf.Variable(tf.constant([[1], [2], [3]]))\n",
"var_x = tf.constant([[1], [2], [3]])\n",
"print(var_x.shape)"
]
},
Expand Down

0 comments on commit 8fbee6d

Please sign in to comment.