Skip to content

Commit

Permalink
DecomposeComplexOps: update parseEquation to skip space char for Aten…
Browse files Browse the repository at this point in the history
…EinsumOp op (llvm#2910)

Just a minor update to skip the space char if included in the equation
string

---------

Co-authored-by: Ze Zhang <ze.zhang@getcruise.com>
  • Loading branch information
zezhang and Ze Zhang authored Feb 15, 2024
1 parent 77b7550 commit f3b38e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static bool parseEquation(const std::string &equation,
inputToken.clear();
currentVariable = kIsResult;
index++;
} else {
} else if (equation[index] != ' ') {
return false;
}
index++;
Expand Down

0 comments on commit f3b38e5

Please sign in to comment.