Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 166ca5d

Browse files
committed
Fix keras example
1 parent d50165d commit 166ca5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/core/guide/autograph.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@
679679
"def collatz(x):\n",
680680
" x=tf.reshape(x,())\n",
681681
" assert x>0\n",
682-
" n = tf.convert_to_tensor(0) \n",
682+
" n = tf.convert_to_tensor((0,)) \n",
683683
" while not tf.equal(x,1):\n",
684684
" n+=1\n",
685685
" if tf.equal(x%2, 0):\n",

0 commit comments

Comments
 (0)