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

Fix the doc of tf.contrib.lookup.MutableHashTable insert operation #17836

Merged
merged 1 commit into from
Mar 28, 2018

Conversation

imsheridan
Copy link
Contributor

This PR is to fix #17835.
Document on MutableHashTable is confusing, especially in this line:

table.insert(keys, values)

This code is unexecutable and misleading, it suggests insert is done inplace rather than an operation that need to be executed afterwards.

sess.run(table.insert(keys, values))

Reference: tensorflow-mutablehashtable-not-updating

@benoitsteiner benoitsteiner merged commit 357847d into tensorflow:master Mar 28, 2018
@imsheridan imsheridan deleted the fix_lookup_ops branch March 28, 2018 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Doc] Clarification on tf.contrib.lookup.MutableHashTable insert operation
5 participants