Skip to content

Commit

Permalink
Fixed boolean AND operator rather than comma for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffburdick authored Nov 4, 2024
1 parent 958f390 commit 9ebbdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/matx/transforms/einsum.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class matxEinsumHandle_t {
((params.nmodes_[i++] = tensors.Rank()), ...);

i = 0;
MATX_ASSERT_STR(((tokens[i++].length() == static_cast<size_t>(tensors.Rank())), ...), matxInvalidDim,
MATX_ASSERT_STR(((tokens[i++].length() == static_cast<size_t>(tensors.Rank())) && ...), matxInvalidDim,
"Tensor rank must match number of einsum subscripts");

auto set_sizes = [](auto &t, std::vector<int64_t> &sizes) {
Expand Down

0 comments on commit 9ebbdb5

Please sign in to comment.