Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Fucius
/
OMG
like
37
Running
on
Zero
App
Files
Files
Community
1
98d7c93
OMG
/
src
/
ip_adapter
/
utils.py
Fucius
Upload 52 files
ad5354d
verified
7 months ago
raw
Copy download link
history
blame
Safe
115 Bytes
import
torch.nn.functional
as
F
def
is_torch2_available
():
return
hasattr
(F,
"scaled_dot_product_attention"
)