-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 running code #30
Comments
function has been changed to LinearOperatorLowerTriangular |
Thank you! I have the same problem and it works for me! |
- tril = tf.contrib.linalg.LinearOperatorTriL(diag_vals).to_dense() # (T_q, T_k)
+ tril = tf.linalg.LinearOperatorLowerTriangular(diag_vals).to_dense() # (T_q, T_k) |
Hi, bro, how do you deal with such VERSION problems? I think google should add some instructions in the history versions. |
Hello I am getting a similar error. My tf version is - 1.13.0-dev20181108 |
I think you should exclude 'contrib' when you use this function. |
i followed all the steps but get the following error.
File "/home/ashishkr/projects/python/transformer/modules.py", line 227, in multihead_attention
tril = tf.contrib.linalg.LinearOperatorTriL(diag_vals).to_dense() # (T_q, T_k)
AttributeError: 'module' object has no attribute 'LinearOperatorTriL'
tf version 1.5.0 and 1.7.0
would be great if you can point out a solution
The text was updated successfully, but these errors were encountered: