Skip to content

Commit

Permalink
Fix typo in DecomposeBernoulli() match failure messages. (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
godot73 authored Dec 20, 2023
1 parent 869c258 commit 20ab882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3520,7 +3520,7 @@ class DecomposeAtenBernoulliOp : public OpRewritePattern<AtenBernoulliOp> {
Value input = op.getSelf();
if (!op.getGenerator().getType().isa<Torch::NoneType>())
return rewriter.notifyMatchFailure(
op, "The generator has to ben None because only global default "
op, "The generator has to be None because only global default "
"generator is supported");
Value output;
if (failed(
Expand All @@ -3546,7 +3546,7 @@ class DecomposeAtenBernoulliLikeOp : public OpRewritePattern<BernoulliLikeOp> {
Value p = op.getP();
if (!op.getGenerator().getType().template isa<Torch::NoneType>())
return rewriter.notifyMatchFailure(
op, "The generator has to ben None because only global default "
op, "The generator has to be None because only global default "
"generator is supported");

auto inputType = input.getType().cast<BaseTensorType>();
Expand Down Expand Up @@ -3578,7 +3578,7 @@ class DecomposeAtenBernoulliTensorOp
Value prob = op.getP();
if (!op.getGenerator().getType().isa<Torch::NoneType>())
return rewriter.notifyMatchFailure(
op, "The generator has to ben None because only global default "
op, "The generator has to be None because only global default "
"generator is supported");
Value output;
if (failed(
Expand Down

0 comments on commit 20ab882

Please sign in to comment.