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

[binding] import torch to avoid libtorch.so not found error #1956

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

robin1001
Copy link
Collaborator

No description provided.

@robin1001 robin1001 merged commit 51b4a25 into main Aug 23, 2023
7 checks passed
@robin1001 robin1001 deleted the binbin-fix-torch branch August 23, 2023 10:51
@xingchensong
Copy link
Member

如果后端是onnx的binding,install require是没有torch的,这里直接import可能会报错。另外我记得以前好像有个方法可以避免后端是torch时显示import torch

@robin1001
Copy link
Collaborator Author

现在还没考虑 onnx,目前主要是解决大家使用时最基本的上手问题。未来我们集成 onnx 的支持并提供 onnx 的预训练模型时,可以再重新梳理一下。

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

Successfully merging this pull request may close these issues.

2 participants