Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Error in getting attention map #218

Closed
suyashh94 opened this issue May 19, 2021 · 3 comments
Closed

Error in getting attention map #218

suyashh94 opened this issue May 19, 2021 · 3 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@suyashh94
Copy link

When I try to get the attention as shown in https://github.com/CyberZHG/keras-bert/blob/master/demo/load_model/load_and_get_attention_map.py, I get the following error :

Output tensors of a Functional model must be the output of a TensorFlow Layer (thus holding past layer metadata). Found: tf.Tensor

Minimal Codes To Reproduce

inputs = model.inputs[:2]
outputs = (model.get_layer('Encoder-1-MultiHeadSelfAttention').attention)
model = keras.models.Model(inputs , outputs)

** Have tried with the function too as shown in the example and that shows similar error too.

@suyashh94 suyashh94 added the bug Something isn't working label May 19, 2021
@stale
Copy link

stale bot commented Jul 8, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix This will not be worked on label Jul 8, 2021
@suyashh94
Copy link
Author

I have implemented it using Google's release of tensorflow.

@stale stale bot removed the wontfix This will not be worked on label Jul 8, 2021
@stale
Copy link

stale bot commented Jul 21, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix This will not be worked on label Jul 21, 2021
@stale stale bot closed this as completed Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants