PP12 / ip_adapter /utils.py
team11aiml's picture
Upload 106 files
db953e2 verified
raw
history blame contribute delete
120 Bytes
import torch.nn.functional as F
def is_torch2_available():
return hasattr(F, "scaled_dot_product_attention")