From 81415e2bfc4d0f465f7a977e1431d3135aae495d Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 25 Mar 2020 19:41:25 -0700 Subject: [PATCH] Fix smoke tests for GCS to be Python3 compatible. PiperOrigin-RevId: 303024321 Change-Id: I83626c22b2110cb0b79c4f020cbc13451811f4f3 --- tensorflow/tools/gcs_test/python/gcs_smoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/tools/gcs_test/python/gcs_smoke.py b/tensorflow/tools/gcs_test/python/gcs_smoke.py index 087577e7a98..3c642ec13f6 100644 --- a/tensorflow/tools/gcs_test/python/gcs_smoke.py +++ b/tensorflow/tools/gcs_test/python/gcs_smoke.py @@ -44,7 +44,7 @@ def create_examples(num_examples, input_mean): examples = [] for row in range(num_examples): ex = example_pb2.Example() - ex.features.feature["id"].bytes_list.value.append(str(ids[row, 0])) + ex.features.feature["id"].bytes_list.value.append(bytes(ids[row, 0])) ex.features.feature["target"].float_list.value.append(target[row, 0]) ex.features.feature["inputs"].float_list.value.append(inputs[row, 0]) examples.append(ex)