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
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
|
||||
|
||||
Reference in New Issue
Block a user