Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
444 changes: 443 additions & 1 deletion src/enzyme_ad/jax/Passes/AutoBatching.cpp

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/enzyme_ad/jax/Passes/AutoBatching.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ bool liftReduceLikeOperation(
llvm::ArrayRef<SliceInfo<mlir::stablehlo::DynamicSliceOp>> slices,
mlir::Operation *op, mlir::enzyme::WhileLoopInfo info);

bool liftChainToReduceWindow(
mlir::PatternRewriter &rewriter, mlir::stablehlo::WhileOp whileOp,
llvm::ArrayRef<SliceInfo<mlir::stablehlo::DynamicSliceOp>> slices,
mlir::Operation *op, mlir::enzyme::WhileLoopInfo info);

struct GreedyWhileLoopBatchFission
: public mlir::enzyme::CheckedOpRewritePattern<
mlir::stablehlo::WhileOp, GreedyWhileLoopBatchFission> {
Expand Down
Loading
Loading