mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 09:07:51 +00:00
Merge branch 'main' into sync/main
This commit is contained in:
@@ -126,7 +126,7 @@ class _CppExtension(_Extension):
|
||||
def load(self):
|
||||
try:
|
||||
op_kernel = self.import_op()
|
||||
except ImportError:
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
# if import error occurs, it means that the kernel is not pre-built
|
||||
# so we build it jit
|
||||
op_kernel = self.build_jit()
|
||||
|
Reference in New Issue
Block a user