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
The call method of DenseFeatures and SequenceFeatures use deprecated attribute _num_buckets #29881
Comments
I could see the warning message on colab with Tf 2.0.0.beta0. Thanks! |
Similar problem here from beta1:
|
I've got exactly the same issue ^^ I hope someone fixes it |
Same here |
+1 - most annoying comment ever <3 |
The warnings are still here in tf2.0.0-rc0. |
Actually there is even one new warning when using tf2.0.0-rc0, I didn't see it the first time I tested. For the same code as above, now the output is:
See the new warning
Is it possible to re-open this issue? Or should I open a new one? Edit: it says I unassigned @bananabowl but I don't know how to do that, I just posted this new comment and then edited it. Edit 2: mentioning @martinwicke as he is the author of the commit which caused this issue to be closed. |
All warnings have disappeared in tf2.0.0. This one can stay closed for good. |
System information
Describe the current behavior
By simply calling the
call
method ofDenseFeatures
andSequenceFeatures
defined withcategorical_column_with_identity
andsequence_categorical_column_with_identity
feature columns (along withembedding_column
), we get warnings that the deprecated attributes_num_buckets
are used (instead of the non-deprecatednum_buckets
I guess).Also note, on the code example below, that a third warning about a deprecated method,
add_dispatch_support.<locals>.wrapper
arises. I do not understand it but there are instructions for updating given in the warning, see the code below.Describe the expected behavior
I think that we should not get warnings about deprecated objects when we are not calling any deprecated method, attribute, etc. I think that somewhere in the code of the
call
method ofDenseFeatures
andSequenceFeatures
there is a use of_num_buckets
that should be replaced bynum_buckets
. Following the updating instructions about the third warning may be enough to get rid of it.Code to reproduce the issue
produces the following three warnings:
The text was updated successfully, but these errors were encountered: