Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeshengJin committed Aug 14, 2023
1 parent 352f93d commit 0038118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/tvm/topi/einsum.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct EinsumEquation {
// The output subscript of the Einsum equation.
Subscript output;
// The number of outputs.
int num_outputs = 0;
size_t num_outputs = 0;

/*!
* \brief Set output subscript of the Einsum equation, and ensure that
Expand Down
2 changes: 1 addition & 1 deletion src/topi/einsum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class EinsumBuilder {
result = result * operands[i];
}
}
for (int i = 0; i < equation_.num_outputs; ++i) {
for (size_t i = 0; i < equation_.num_outputs; ++i) {
results.push_back(result);
}
}
Expand Down

0 comments on commit 0038118

Please sign in to comment.