嘉渊
2023-07-26 8e53dd6b778a6df01854df725b0fa5b4ef6f8317
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')