We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebd4c3 commit b437488Copy full SHA for b437488
ml_engine/online_prediction/predict.py
@@ -122,7 +122,7 @@ def census_to_example_bytes(json_instance):
122
for key, data in six.iteritems(json_instance):
123
if isinstance(data, six.string_types):
124
feature_dict[key] = tf.train.Feature(
125
- bytes_list=tf.train.BytesList(value=[str(data)]))
+ bytes_list=tf.train.BytesList(value=[data.encode('utf-8')]))
126
elif isinstance(data, float):
127
128
float_list=tf.train.FloatList(value=[data]))
0 commit comments