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

未解析的引用 'torch_mlu' #3068

Open
2 tasks done
appreciatehxy opened this issue Mar 23, 2024 · 1 comment
Open
2 tasks done

未解析的引用 'torch_mlu' #3068

appreciatehxy opened this issue Mar 23, 2024 · 1 comment

Comments

@appreciatehxy
Copy link

Prerequisite

Environment

bug

Reproduces the problem - code sample

在 'utils.py' 中找不到引用 'build_extension'

try:
import torch
if torch.version == 'parrots':
from parrots.utils.build_extension import BuildExtension
EXT_TYPE = 'parrots'
elif (hasattr(torch, 'is_mlu_available') and torch.is_mlu_available()) or
os.getenv('FORCE_MLU', '0') == '1':
from torch_mlu.utils.cpp_extension import BuildExtension
EXT_TYPE = 'pytorch'
else:
from torch.utils.cpp_extension import BuildExtension
EXT_TYPE = 'pytorch'
cmd_class = {'build_ext': BuildExtension}

Reproduces the problem - command or script

.

Reproduces the problem - error message

.

Additional information

No response

@zhouzaida
Copy link
Member

What chip did you use?

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