Skip to content

Commit 2640af9

Browse files
Fix incomplete comment (#2232)
* fix: incorrect comment If the suggestion in the comment above is used as-is, the runtime returns an error due to incompatible data types. * Update site/en/guide/tensor.ipynb Co-authored-by: Mark McDonald <[email protected]> --------- Co-authored-by: Mark McDonald <[email protected]>
1 parent e24446b commit 2640af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/guide/tensor.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
"a = tf.constant([[1, 2],\n",
327327
" [3, 4]])\n",
328328
"b = tf.constant([[1, 1],\n",
329-
" [1, 1]]) # Could have also said `tf.ones([2,2])`\n",
329+
" [1, 1]]) # Could have also said `tf.ones([2,2], dtype=tf.int32)`\n",
330330
"\n",
331331
"print(tf.add(a, b), \"\\n\")\n",
332332
"print(tf.multiply(a, b), \"\\n\")\n",

0 commit comments

Comments
 (0)