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

Error when combining teacherforce/readout with return_states #107

Open
Aerylia opened this issue Aug 31, 2018 · 0 comments
Open

Error when combining teacherforce/readout with return_states #107

Aerylia opened this issue Aug 31, 2018 · 0 comments

Comments

@Aerylia
Copy link

Aerylia commented Aug 31, 2018

I get an error stating that the output_tensors and output_masks are not of equal length when using readout and return_states and nesting the RecurrentModel into a keras model.
I believe this is because RecurrentModel.compute_masks(..) does not take into account that the number of states is 1 more than the number of outputs when self.readout = True.
My error went away when I fixed this, but I am not sure how this will affect the remainder of the code/models/layers etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant