Update src/mlpack/methods/ann/layer/multihead_attention.hpp
Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user