cgisky1980
2023-03-21 b1a5fbd433da55291f0a3d9df3fa1e85e6fcbc66
funasr/export/models/modules/multihead_att.py
@@ -75,8 +75,10 @@
    return x, cache
import torch.fx
torch.fx.wrap('preprocess_for_attn')
torch_version = float(".".join(torch.__version__.split(".")[:2]))
if torch_version >= 1.8:
    import torch.fx
    torch.fx.wrap('preprocess_for_attn')
class MultiHeadedAttentionSANMDecoder(nn.Module):