-
Notifications
You must be signed in to change notification settings - Fork 613
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
seq2seq.BahdanauAttention raise TypeError: probability_fn is not an instance of str #2820
Comments
Hello, have you solved this issue? i also have the same error when initializing tea.seq2seq.LuongAttention. |
Do you have a very minimal gist to run to reproduce this? |
@We-here unfortunately no, I have not found a way to bypass type check |
@bhack I think the code above is enough. Exception is thrown when initializing the instance of the class, not afterwards |
Yes cause Can you send a PR to the specific test to help reproduce this case? |
Also seeing this issue on google colab.
|
@BrandonStudio I skip the type checking by comment out |
@DangMinh24 Did you just modify the library source code? |
@BrandonStudio Yeah, I modify tensorflow-addons code in local environment. |
System information
Describe the bug
call BahdanauAttention with default
probability_fn
value ("softmax"
) raises type errorTried to debug and found that
probability_fn
was a function when checking typeCode to reproduce the issue
Other info / logs
The text was updated successfully, but these errors were encountered: