-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Datasets] Fix to_tf
when the input feature_columns is a list.
#31228
Conversation
Co-authored-by: Jeroen Bédorf <[email protected]>
Co-authored-by: Jeroen Bédorf <[email protected]>
add re3 documentation
Signed-off-by: n3011 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! The patch looks good to me.
Could you also add a unit test?
Signed-off-by: n3011 <[email protected]>
@bveeramani thanks, I have added a test to verify the above change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…-project#31228) This fixes a bug in dataset.to_tf method. This method should returns a dictionary when input feature_columns is a list, but in the current release 2.2 and master branch it is returning a set, which also fails due to unhashable type. Signed-off-by: tmynn <[email protected]>
Why are these changes needed?
This fixes a bug in
dataset.to_tf
method. This method should returns a dictionary when input feature_columns is a list, but in the current release 2.2 and master branch it is returning a set, which also fails due to unhashable type.Related issue number
#31229
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.