Disable xformers when it can't load properly.
This commit is contained in:
parent
f12ec55983
commit
7339479b10
|
@ -133,6 +133,10 @@ else:
|
|||
import xformers
|
||||
import xformers.ops
|
||||
XFORMERS_IS_AVAILABLE = True
|
||||
try:
|
||||
XFORMERS_IS_AVAILABLE = xformers._has_cpp_library
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
XFORMERS_VERSION = xformers.version.__version__
|
||||
print("xformers version:", XFORMERS_VERSION)
|
||||
|
|
Loading…
Reference in New Issue