Skip to content

Commit 1b57c12

Browse files
authored
Snapshot is a method, not a factory.
1 parent 769cbfc commit 1b57c12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/en/tutorials/load_data/csv.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,7 @@
11321132
"outputs": [],
11331133
"source": [
11341134
"%%time\n",
1135-
"snapshot = tf.data.Dataset.snapshot('titanic.tfsnap')\n",
1136-
"snapshotting = traffic_volume_csv_gz_ds.apply(snapshot).shuffle(1000)\n",
1135+
"snapshotting = traffic_volume_csv_gz_ds.snapshot('titanic.tfsnap').shuffle(1000)\n",
11371136
"\n",
11381137
"for i, (batch, label) in enumerate(snapshotting.shuffle(1000).repeat(20)):\n",
11391138
" if i % 40 == 0:\n",

0 commit comments

Comments
 (0)