Skip to content

Commit f278011

Browse files
Fix notebook failure with Keras 3.
PiperOrigin-RevId: 624315589
1 parent 29fd0f4 commit f278011

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/en/tutorials/load_data/csv.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@
449449
},
450450
"outputs": [],
451451
"source": [
452-
"print(calc(1).numpy())\n",
453-
"print(calc(2).numpy())"
452+
"print(calc(np.array([1])).numpy())\n",
453+
"print(calc(np.array([2])).numpy())"
454454
]
455455
},
456456
{
@@ -1751,7 +1751,7 @@
17511751
"\n",
17521752
"for row in font_rows.take(10):\n",
17531753
" fonts_dict['font_name'].append(row[0].numpy().decode())\n",
1754-
" fonts_dict['character'].append(chr(row[2].numpy()))\n",
1754+
" fonts_dict['character'].append(chr(int(row[2].numpy())))\n",
17551755
"\n",
17561756
"pd.DataFrame(fonts_dict)"
17571757
]

0 commit comments

Comments
 (0)