-
Notifications
You must be signed in to change notification settings - Fork 728
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
MaskedCategorical warns about inheriting _parameter_properties from its parent #658
Comments
I know
I came to this by mimicking the |
I meet the same problem too. How can I turn off this warning? I have tried |
I am getting the same warning. I just installed tf_agent today. It would be nice to get an answer to this. |
got the same warning |
I found that |
I am trying to use an action mask with a DQNAgent and, for the most part, have succeeded. But I have a persistent warning that I can't get rid of.. I think this is a convoluted example of the warning, but this is how I hit it.
Versions:
tensorflow 2.6.0
tensorflow-datasets 4.2.0
tensorflow-estimator 2.6.0
tensorflow-metadata 0.21.0
tensorflow-probability 0.14.0
Original Example (for a more contrived example, see below)
My setup:
QRnnNetwork, DQNAgent, custom environment
Observation spec defined as follows:
I create the network using the network-relevant portion of the observation:
And the DQNAgent takes a splitter
My Problem:
The warning I see (with great frequency) is the following:
Which I have identified as originating from https://github.com/tensorflow/probability/blob/main/tensorflow_probability/python/distributions/distribution.py
I believe this warning is implying a deficiency in how another class inherits from the Distribution class. In my case, it rears its head when I use MaskedCategorical through specifying an action and constraint splitter fn.
Contrived Example
Here is a more contrived example where I hit this same warning:
Thanks
The text was updated successfully, but these errors were encountered: