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

Failed to Get Trivial Embedding #1

Open
RobinWu218 opened this issue Jul 22, 2020 · 1 comment
Open

Failed to Get Trivial Embedding #1

RobinWu218 opened this issue Jul 22, 2020 · 1 comment

Comments

@RobinWu218
Copy link

When I try to extract a trivial embedding with the provided function task_similarity.get_trivial_embedding_from(e) where e is an embedding, I get an error message TypeError: 'Embedding' object is not subscriptable. I notice that in task2vec.py, Embedding is a class and does not have keys such as 'layers', which is why I cannot extract the trivial embedding.

My question is:

  1. Is my input of an 'Embedding' object to the function correct?
  2. Is there a way to work around this?

Thanks.

@PlusStar-Li
Copy link

I have the same question.

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

2 participants