Skip to content

Instantly share code, notes, and snippets.

@a7v8x
Created May 5, 2020 19:02
Show Gist options
  • Save a7v8x/aadcd3ea19a3824e34d8921f99d06333 to your computer and use it in GitHub Desktop.
Save a7v8x/aadcd3ea19a3824e34d8921f99d06333 to your computer and use it in GitHub Desktop.
# train dataset
ds_train_encoded = encode_examples(ds_train).shuffle(10000).batch(batch_size)
# test dataset
ds_test_encoded = encode_examples(ds_test).batch(batch_size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment