Update src/mlpack/methods/ann/layer/multihead_attention.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Adam Kropp
2023-11-13 15:30:25 -05:00
committed by GitHub
co-authored by Ryan Curtin
parent d00446231a
commit dfcf40a71f
@@ -211,7 +211,8 @@ class MultiheadAttentionType : public Layer<MatType>
}
if (srcSeqLen != tgtSeqLen)
{
Log::Fatal << "If using selfAttention, srcSeqLen must equal tgtSeqLen"
Log::Fatal << "If using selfAttention, srcSeqLen (" << srcSeqLen
<< " must equal tgtSeqLen " << tgtSeqLen << ")!" << std::endl;
<< std::endl;
}
}