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

How to generator my tfRecord file, I have generator my own TFRecord file, it's work ok on my local, but not work ok on what if tool #195

Open
johnsGuo opened this issue Jan 20, 2022 · 1 comment

Comments

@johnsGuo
Copy link

example = tf.train.Example(features=tf.train.Features(feature={
'dense_input': tf.train.Feature(float_list=tf.train.FloatList(value=dense)),
'sparse_ids_input': tf.train.Feature(int64_list=tf.train.Int64List(value=feat_ids)),
'sparse_wgt_input': tf.train.Feature(float_list=tf.train.FloatList(value=feat_vals)),
'seq_50_input': tf.train.Feature(int64_list=tf.train.Int64List(value=seq_50)),
'is_click': tf.train.Feature(int64_list=tf.train.Int64List(value=[int(labels)])),
}))

writer.write(example.SerializeToString())

@johnsGuo johnsGuo changed the title How to generator my tfRecord file, I have generator my own TFRecord file, it's work ok on my local, but not work ok on what if too How to generator my tfRecord file, I have generator my own TFRecord file, it's work ok on my local, but not work ok on what if tool Jan 20, 2022
@jameswex
Copy link
Collaborator

What error do you see when trying to load this TFRecord file into the What-If Tool? If running through TensorBoard, you may see errors in the running log on the console that launched the TensorBoard job.

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

2 participants