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

NameError: name '_genbmm' is not defined #13

Open
HenryBao91 opened this issue Feb 9, 2022 · 1 comment
Open

NameError: name '_genbmm' is not defined #13

HenryBao91 opened this issue Feb 9, 2022 · 1 comment

Comments

@HenryBao91
Copy link

I install the module by !pip3 install -qU git+https://github.com/harvardnlp/genbmm.
And then, I run the example code :

import genbmm

a = torch.rand(10, 3, 4).cuda().requires_grad_(True)
b = torch.rand(10, 4, 5).cuda().requires_grad_(True)

# Log-Sum-Exp
c = genbmm.logbmm(a, b)

It occurs this error :

NameError: name '_genbmm' is not defined
@srush
Copy link
Contributor

srush commented Feb 11, 2022

This means that the cuda extension packaged with the library failed to install. Was their an error message when you installed?

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