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:45:43 -05:00
committed by GitHub
co-authored by Ryan Curtin
parent 4cb0cd111c
commit 94bb5ff521
@@ -208,7 +208,6 @@ class MultiheadAttentionType : public Layer<MatType>
for (size_t i=2; i<this->inputDimensions.size(); i++)
{
srcSeqLen *= this->inputDimensions[i];
}
if (srcSeqLen != tgtSeqLen)
{
Log::Fatal << "If using selfAttention, srcSeqLen (" << srcSeqLen