File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
openequivariance/openequivariance/_torch/extlib Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2323torch_module , generic_module = None , None
2424postprocess_kernel = lambda kernel : kernel # noqa : E731
2525
26-
2726try :
2827 python_lib_dir = sysconfig .get_config_var ("LIBDIR" )
2928 major , minor = sys .version_info .major , sys .version_info .minor
4443if BUILT_EXTENSION :
4544 import openequivariance ._torch .extlib .generic_module
4645 generic_module = openequivariance ._torch .extlib .generic_module
46+
4747elif torch .version .cuda or torch .version .hip :
4848 try :
4949 from torch .utils .cpp_extension import library_paths , include_paths
@@ -141,12 +141,10 @@ def _raise_import_error_helper(import_target: str):
141141 if not BUILT_EXTENSION :
142142 raise ImportError (f"Could not import { import_target } : { BUILT_EXTENSION_ERROR } " )
143143
144-
145144def torch_ext_so_path ():
146145 return torch_module .__file__
147146
148-
149- if TORCH_VERSION_CUDA_OR_HIP :
147+ if BUILT_EXTENSION :
150148 from generic_module import (
151149 JITTPImpl ,
152150 JITConvImpl ,
You can’t perform that action at this time.
0 commit comments