Skip to content

Commit 20ab882

Browse files
authored
Fix typo in DecomposeBernoulli() match failure messages. (#2676)
1 parent 869c258 commit 20ab882

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,7 +3520,7 @@ class DecomposeAtenBernoulliOp : public OpRewritePattern<AtenBernoulliOp> {
35203520
Value input = op.getSelf();
35213521
if (!op.getGenerator().getType().isa<Torch::NoneType>())
35223522
return rewriter.notifyMatchFailure(
3523-
op, "The generator has to ben None because only global default "
3523+
op, "The generator has to be None because only global default "
35243524
"generator is supported");
35253525
Value output;
35263526
if (failed(
@@ -3546,7 +3546,7 @@ class DecomposeAtenBernoulliLikeOp : public OpRewritePattern<BernoulliLikeOp> {
35463546
Value p = op.getP();
35473547
if (!op.getGenerator().getType().template isa<Torch::NoneType>())
35483548
return rewriter.notifyMatchFailure(
3549-
op, "The generator has to ben None because only global default "
3549+
op, "The generator has to be None because only global default "
35503550
"generator is supported");
35513551

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

0 commit comments

Comments
 (0)