Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 292533112
  • Loading branch information
TensorFlow Hub Authors authored and vbardiovskyg committed Feb 3, 2020
1 parent 6484258 commit 1de053c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mnist_export_v2/export_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def setUp(self):
super(ExportTest, self).setUp()
def create_image_and_label(index):
image = tf.cast(255 * tf.random.normal([1, 28, 28, 1]), tf.uint8)
return dict(image=image, label=index)
return dict(image=image, label=[index])
self.mock_dataset = tf.data.Dataset.range(5).map(create_image_and_label)

def test_model_exporting(self):
Expand Down

0 comments on commit 1de053c

Please sign in to comment.