Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper committed Aug 25, 2023
1 parent 0aab78e commit 99b3d60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oneflow/core/functional/impl/nn_functor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5223,6 +5223,7 @@ class GroupedMatmulFunctor {
Maybe<TensorTuple> operator()(const TensorTuple& xs, const TensorTuple& weights) const {
const int64_t input_size = xs.size();
const int64_t weight_size = weights.size();
CHECK_LT_OR_RETURN(input_size, kMaxInputCount);
CHECK_GE_OR_RETURN(input_size, 1)
<< Error::RuntimeError() << "The number of xs should be greater equal than 1.";
CHECK_EQ_OR_RETURN(weight_size, input_size)
Expand Down

0 comments on commit 99b3d60

Please sign in to comment.