Skip to content

Commit

Permalink
Fix notebook failure with Keras 3.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 624315589
  • Loading branch information
tensorflower-gardener authored and copybara-github committed Apr 12, 2024
1 parent 29fd0f4 commit f278011
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/en/tutorials/load_data/csv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@
},
"outputs": [],
"source": [
"print(calc(1).numpy())\n",
"print(calc(2).numpy())"
"print(calc(np.array([1])).numpy())\n",
"print(calc(np.array([2])).numpy())"
]
},
{
Expand Down Expand Up @@ -1751,7 +1751,7 @@
"\n",
"for row in font_rows.take(10):\n",
" fonts_dict['font_name'].append(row[0].numpy().decode())\n",
" fonts_dict['character'].append(chr(row[2].numpy()))\n",
" fonts_dict['character'].append(chr(int(row[2].numpy())))\n",
"\n",
"pd.DataFrame(fonts_dict)"
]
Expand Down

0 comments on commit f278011

Please sign in to comment.