Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转换tfrecord数据的一个bug #2

Open
hrwleo opened this issue Mar 25, 2021 · 0 comments
Open

转换tfrecord数据的一个bug #2

hrwleo opened this issue Mar 25, 2021 · 0 comments

Comments

@hrwleo
Copy link

hrwleo commented Mar 25, 2021

#将存有所有feature的字典送入tf.train.Features中
tf_features = tf.train.Features(feature= features)
#再将其变成一个样本example
tf_example = tf.train.Example(features = tf_features)
#序列化该样本
tf_serialized = tf_example.SerializeToString()

这段代码应该在循环里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant