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

there is a bug about 'get_ dropout_ mask_ for_cell' in recurrent.py #511

Open
ross-Hr opened this issue Dec 2, 2021 · 0 comments
Open

Comments

@ross-Hr
Copy link

ross-Hr commented Dec 2, 2021

The batch size of my program changes dynamically, but the function 'get_ dropout_ mask_ for_cell' in recurrent.py can only generate a fixed size of ​mask.

After run the code like ' inputs_i = inputs * dp_mask[0] ' an error occured.

Because my inputs shape like [5274,512] but dp_mask[0] like [9,512]. After the code initializes the dimension(9), the program will change the batch dimension to 5274.

So how can i fix it?

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