keras-team / keras-contrib

Keras community contributions
MIT License
1.59k stars 653 forks source link

Enforcing dtype in `K.zeros_like` for mask #517

Open ashutoshsingh0223 opened 4 years ago

ashutoshsingh0223 commented 4 years ago

Enforcing dtype in K.zeros_like for mask in recursion function. K.zeros_like failed to infer dtype of mask when a Masking layer is used.

Passed dtype of mask as parameter to K.zeros_like

This pull request fixes #498 and #515