ShiLiang Zhang
2023-08-07 9d7c6e75f0b2ab1a5fc6e3a3a795d804fdb0bc8d
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')