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

Tensorflow 2 upgrade #4

Open
maryamnikoo opened this issue Oct 20, 2022 · 0 comments
Open

Tensorflow 2 upgrade #4

maryamnikoo opened this issue Oct 20, 2022 · 0 comments

Comments

@maryamnikoo
Copy link

Hi,

I have an issue with the dummy layer you defined as:

dummy_layer = Lambda(
lambda x: att_layer._get_attention_weights(x)
)(prev_tensor)

It is not working in Tensorflow 2. Based on my search, we need to convert it to a subclass layer. Could you please help with this issue? How this subclass layer should be defined inside "show_word_attention(self, x)" function?

Thanks

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