游雁
2023-05-24 9ead62f7fb604e22aee91bf4d5b8b5f40a65e8ec
funasr/export/models/modules/multihead_att.py
@@ -75,8 +75,8 @@
    return x, cache
torch_version = float(".".join(torch.__version__.split(".")[:2]))
if torch_version >= 1.8:
torch_version = tuple([int(i) for i in torch.__version__.split(".")[:2]])
if torch_version >= (1, 8):
    import torch.fx
    torch.fx.wrap('preprocess_for_attn')