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

Can not get the value of embedding variables using NewCheckpointReader #79

Open
Lihengwannafly opened this issue Feb 21, 2022 · 0 comments
Assignees

Comments

@Lihengwannafly
Copy link

from tensorflow.python import pywrap_tensorflow
reader = pywrap_tensorflow.NewCheckpointReader(latest_checkpoint)
var_to_shape_map = reader.get_variable_to_shape_map()
for key in var_to_shape_map:
    print(reader.get_tensor(key))

I want export the value of embedding variables, and I test it in nvtf successfully. But in deeprec, the value is [], an empty list.

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