-
Notifications
You must be signed in to change notification settings - Fork 116
Layer to convert Tensor to SparseTensor dropping ignore values #1860
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
Layer to convert Tensor to SparseTensor dropping ignore values #1860
Conversation
Arguments: | ||
ignore_value: Entries in inputs equal to this value will be | ||
absent from the output `SparseTensor`. If `None`, default value of | ||
inputs dtype will be used ('' for `str`, -1 for `int`). |
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.
Should we expose this?
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.
-1 for int
seems dangerous as this is application specific
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.
-1 for int
is the default value and the layer will ignore it during transformation.
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.
-1 for
int
seems dangerous as this is application specific
Use -1 as the default ignore_value for int
type is also the implementation inside feature column. Please check the code snippet.
Fix #1844