Create utils.py
Browse files- ip_adapter/utils.py +7 -0
ip_adapter/utils.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ip_adapter/utils.py
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def is_torch2_available():
|
| 7 |
+
return hasattr(torch, "compile")
|