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
f5be365000
commit
eb3e7f2a48
@@ -192,7 +192,8 @@ class MultiheadAttentionType : public Layer<MatType>
|
||||
|
||||
void ComputeOutputDimensions() override
|
||||
{
|
||||
if (this->inputDimensions.size() < 2) {
|
||||
if (this->inputDimensions.size() < 2)
|
||||
{
|
||||
Log::Fatal << "Must have at least two dimensions for MultiHeadAttention: "
|
||||
<< " [EmbeddingDim,SequenceLen]" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user