Skip to content

Commit

Permalink
Added data pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-coursera committed Jun 9, 2020
1 parent 1d9afb0 commit 9d4e9b6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,20 @@
" print ('{} ----> {}'.format(ts, tokenizer.decode([ts])))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"BUFFER_SIZE = 10000\n",
"BATCH_SIZE = 64\n",
"\n",
"train_dataset = train_data.shuffle(BUFFER_SIZE)\n",
"train_dataset = train_dataset.padded_batch(BATCH_SIZE, tf.compat.v1.data.get_output_shapes(train_dataset))\n",
"test_dataset = test_data.padded_batch(BATCH_SIZE, tf.compat.v1.data.get_output_shapes(test_data))"
]
},
{
"cell_type": "code",
"execution_count": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,20 @@
" print ('{} ----> {}'.format(ts, tokenizer.decode([ts])))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"BUFFER_SIZE = 10000\n",
"BATCH_SIZE = 64\n",
"\n",
"train_dataset = train_data.shuffle(BUFFER_SIZE)\n",
"train_dataset = train_dataset.padded_batch(BATCH_SIZE, tf.compat.v1.data.get_output_shapes(train_dataset))\n",
"test_dataset = test_data.padded_batch(BATCH_SIZE, tf.compat.v1.data.get_output_shapes(test_data))"
]
},
{
"cell_type": "code",
"execution_count": 0,
Expand Down

1 comment on commit 9d4e9b6

@GzuPark
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you miss also modifying on fit() . #134

Please sign in to comment.