Skip to content

Commit

Permalink
[Fix] Fix embedding shape check in ChatModule (#1953)
Browse files Browse the repository at this point in the history
This PR is a fix to address #1952.
  • Loading branch information
MasterJH5574 authored Mar 13, 2024
1 parent 5c29f02 commit 8d192ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/llm_chat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ class LLMChat {
embedding_shape = embedding_nd.Shape();
}
ICHECK_EQ(embedding_shape.size(), 2);
ICHECK_GT(embedding_shape[0], 1);
ICHECK_GE(embedding_shape[0], 1);
this->hidden_size_ = embedding_shape[1];
return this->hidden_size_;
}
Expand Down

0 comments on commit 8d192ef

Please sign in to comment.