SEED-Story / src /models_ipa /ipa_utils.py
xinlai's picture
seedx
674d663
raw
history blame contribute delete
115 Bytes
import torch.nn.functional as F
def is_torch2_available():
return hasattr(F, "scaled_dot_product_attention")