Skip to content

mt_attention_birnn运行plot_attention函数报错 #26

@ABadCandy

Description

@ABadCandy

报错位置:---> 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,请问是什么问题呢,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions