Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 714279703
  • Loading branch information
Google-ML-Automation committed Jan 11, 2025
1 parent 72069fd commit 0db4751
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,13 @@ class UnfuseBatchNormTrainingPattern
// In combination with marking such ops as illegal, this allows backends that
// do not have special support for fused batchnorm to use simpler arithmetic
// primitives.
void populateUnfuseBatchNormInferencePattern(MLIRContext *context,
RewritePatternSet *patterns) {
static void populateUnfuseBatchNormInferencePattern(
MLIRContext *context, RewritePatternSet *patterns) {
patterns->add<UnfuseBatchNormInferencePattern>(context);
}

void populateUnfuseBatchNormTrainingPattern(MLIRContext *context,
RewritePatternSet *patterns) {
static void populateUnfuseBatchNormTrainingPattern(
MLIRContext *context, RewritePatternSet *patterns) {
patterns->add<UnfuseBatchNormTrainingPattern>(context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct TestUnfuseBatchNormPass

} // namespace

std::unique_ptr<::mlir::Pass> createTestUnfuseBatchNormPass() {
static std::unique_ptr<::mlir::Pass> createTestUnfuseBatchNormPass() {
return std::make_unique<TestUnfuseBatchNormPass>();
}

Expand Down

0 comments on commit 0db4751

Please sign in to comment.