Leteint commited on
Commit
fcad272
·
verified ·
1 Parent(s): 955dd47

Create utils.py

Browse files
Files changed (1) hide show
  1. 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")