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

Unknown builtin op: sru_cuda::sru_bi_forward_simple #197

Open
ctlaltdefeat opened this issue Dec 6, 2021 · 2 comments
Open

Unknown builtin op: sru_cuda::sru_bi_forward_simple #197

ctlaltdefeat opened this issue Dec 6, 2021 · 2 comments

Comments

@ctlaltdefeat
Copy link

When using a bidirectional SRU, regular usage seems to be fine, and compilation to torchscript proceeds without error, but upon trying to infer with the compiled torchscript I get:

Unknown builtin op: sru_cuda::sru_bi_forward_simple.

Using pytorch 1.10, sru 2.6.0, cuda 11.3

@jinpoon
Copy link
Collaborator

jinpoon commented Dec 7, 2021

Can you try setting CUDA_VISIBLE_DEVICES="" when you torchscript your model?

@taolei87
Copy link
Contributor

taolei87 commented Dec 7, 2021

Hi @ctlaltdefeat ,

Could you also provide some details:

  • are you trying to use the torchscript model in Python or C++?
  • are you trying to use the torchscript model with GPU or with CPU?

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

3 participants