Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigunj committed Jan 29, 2025
1 parent 5ce85df commit 8aa7840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions stablehlo/dialect/AssemblyFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ Attribute parseResultAccuracyAttr(AsmParser& parser, Type type) {

// Parse literal '>'
if (parser.parseGreater()) return {};
return parser.getChecked<AttrTy>(
parser.getCurrentLocation(), parser.getContext(), resultAtol, resultRtol,
resultUlps, modeAttr);
return parser.getChecked<AttrTy>(parser.getCurrentLocation(),
parser.getContext(), resultAtol, resultRtol,
resultUlps, modeAttr);
}

} // namespace hlo
Expand Down
6 changes: 2 additions & 4 deletions stablehlo/transforms/StablehloRefineShapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,12 @@ LogicalResult refineValues(PatternRewriter& rewriter, Operation* op,
// their operands and results. Any operand type in these ops can change
// within what's supported by `inferMostSpecificType` without breaking
// verification of the op.
if (isa<chlo::ChloDialect, StablehloDialect>(
user->getDialect()))
if (isa<chlo::ChloDialect, StablehloDialect>(user->getDialect()))
continue;
// TODO(bartchr): Consider if the dialect allow-listing approach is too
// strict. In the meantime, allow some shape interop with the shardy
// dialect.
if (user->getDialect()->getNamespace() == "sdy")
continue;
if (user->getDialect()->getNamespace() == "sdy") continue;

// Simply changing operand type of `func.return` won't work because
// that won't update the FunctionType of the enclosing `func.func`.
Expand Down

0 comments on commit 8aa7840

Please sign in to comment.