Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
nowsyn/StyleShot
nuwandaa
/
StyleShot
like
0
Running
on
Zero
App
Files
Files
Community
main
StyleShot
/
ip_adapter
/
utils.py
nowsyn
upload code
107040a
5 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
115 Bytes
import
torch.nn.functional
as
F
def
is_torch2_available
():
return
hasattr
(F,
"scaled_dot_product_attention"
)