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

mt_attention_birnn运行plot_attention函数报错 #26

Open
ABadCandy opened this issue Aug 19, 2018 · 0 comments
Open

mt_attention_birnn运行plot_attention函数报错 #26

ABadCandy opened this issue Aug 19, 2018 · 0 comments

Comments

@ABadCandy
Copy link

报错位置:---> r = f([X.reshape(-1,20), s0, c0, out0])
InvalidArgumentError: You must feed a value for placeholder tensor 'input_1' with dtype float and shape [?,20]
[[Node: input_1 = Placeholderdtype=DT_FLOAT, shape=[?,20], _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
[[Node: attention_weights_23/truediv/_2409 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_6010_attention_weights_23/truediv", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

我的Keras版本是2.2.2,tensorflow版本是1.9,请问是什么问题呢,谢谢!

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