We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在 '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}
.
No response
The text was updated successfully, but these errors were encountered:
What chip did you use?
Sorry, something went wrong.
No branches or pull requests
Prerequisite
Environment
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
The text was updated successfully, but these errors were encountered: