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

版本 1.0.1 No module named 'fastNLP.embeddings.embedding' #441

Open
MrRace opened this issue Dec 14, 2022 · 1 comment
Open

版本 1.0.1 No module named 'fastNLP.embeddings.embedding' #441

MrRace opened this issue Dec 14, 2022 · 1 comment

Comments

@MrRace
Copy link

MrRace commented Dec 14, 2022

在 fastNLP 版本 1.0.1 中

from fastNLP.embeddings.embedding import TokenEmbedding

报错:

ModuleNotFoundError: No module named 'fastNLP.embeddings.embedding'
@yhcc
Copy link
Member

yhcc commented Dec 14, 2022

因为fastNLP 1.0.1版本中我们支持多种深度学习框架,所以在embedding引用时需要加入具体的深度学习框架

from fastNLP.embeddings.torch.embedding import TokenEmbedding

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