Skip to content

Commit

Permalink
internal.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 230692322
  • Loading branch information
pierrot0 authored and Copybara-Service committed Jan 24, 2019
1 parent 341e276 commit 2ac5fe2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tensorflow_datasets/testing/e2e_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,25 @@
from __future__ import print_function

from absl import app
import tensorflow as tf
import tensorflow_datasets as tfds

tf.enable_eager_execution()


def main(argv):
del argv
mnist, info = tfds.load('mnist', with_info=True)
print(mnist, info)
mnist_train = tfds.load('mnist', split='train')
print(mnist_train)
mnist_subsplit = tfds.Split.TRAIN.subsplit(tfds.percent[:10])
mnist_train2 = tfds.load('mnist', split=mnist_subsplit)
print(mnist_train2)
for i, unused_row in enumerate(mnist_train2):
if i > 10:
break
print(i)
cifar10, info = tfds.load('cifar10', with_info=True)
print(cifar10, info)
cifar10_np = tfds.dataset_as_numpy(cifar10)
Expand Down

0 comments on commit 2ac5fe2

Please sign in to comment.