genbmm icon indicating copy to clipboard operation
genbmm copied to clipboard

NameError: name '_genbmm' is not defined

Open HenryBao91 opened this issue 3 years ago • 1 comments

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

HenryBao91 avatar Feb 09 '22 03:02 HenryBao91

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

srush avatar Feb 11 '22 22:02 srush