Commit 1270d5ee authored by 赵威's avatar 赵威

update time

parent bd269634
......@@ -105,7 +105,7 @@ def model_predict(inputs, predict_fn):
elif col in int_columns:
features[col] = _int64_feature(int(value))
elif col in float_columns:
features[col] = _float_feature(value)
features[col] = _float_feature(float(value))
else:
features[col] = _bytes_feature(str(value).encode(encoding="utf-8"))
example = tf.train.Example(features=tf.train.Features(feature=features))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment