Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Levesque-Dion committed Apr 18, 2024
1 parent 76dbe83 commit 3729fde
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stablehlo/dialect/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,8 @@ struct SpeculatableIfAllInputsStaticAndShapeConstantImplTrait
auto resultType = cast<ShapedType>(op->getResult(0).getType());
// The result type's shape is fully dynamic, so there cannot be a mismatch
// with the output shape operand at runtime (the type has no expectations).
if (llvm::all_of(
llvm::seq(resultType.getRank()),
[&](int64_t i) { return resultType.isDynamicDim(i); }))
if (llvm::all_of(llvm::seq(resultType.getRank()),
[&](int64_t i) { return resultType.isDynamicDim(i); }))
return mlir::Speculation::Speculatable;

// If all inputs are static and the output shape (last operand) is constant,
Expand Down

0 comments on commit 3729fde

Please sign in to comment.