You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Is my input of an 'Embedding' object to the function correct?
Is there a way to work around this?
Thanks.
The text was updated successfully, but these errors were encountered:
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 messageTypeError: '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:
Thanks.
The text was updated successfully, but these errors were encountered: