Skip to content

Commit

Permalink
addreess comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Groverkss committed Jun 7, 2024
1 parent 997815b commit bf8cfce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ module {
return
}
}
// CHECK-DAG: #[[CONFIG:.+]] = #iree_codegen.lowering_config<tile_sizes = {{\[}}[20, 64, 0, 0, 0], [20, 32, 0, 0, 0]]>
// CHECK-DAG: #[[CONFIG:.+]] = #iree_codegen.lowering_config<tile_sizes = {{\[}}[20, 64, 0, 0, 64], [20, 32, 0, 0, 32], [0, 0, 0, 32, 0]]>
// CHECK-DAG: #[[TRANSLATION:.+]] = #iree_codegen.translation_info<CPULinalgExtTileAndVectorize>
// CHECK: func.func @attention()
// CHECK-SAME: translation_info = #[[TRANSLATION]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ DiagnosedSilenceableFailure LinalgExt::ConvertToOnlineAttention::applyToOne(
transform::TransformState &state) {
SmallVector<Operation *> ops;
LinalgExt::convertToOnlineAttention(attentionOp, ops, rewriter);
for (auto op : ops) {
results.push_back(op);
}
llvm::append_range(results, ops);
return DiagnosedSilenceableFailure::success();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ AffineMap dropResultsContainingDims(AffineMap map, ArrayRef<int64_t> dims) {
}
}

// Iterate in reverse to preserve indexes to drop.
// Iterate in reverse to preserve indices to drop.
for (int result : llvm::reverse(resultsToDrop)) {
map = map.dropResult(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ struct TileAttentionPass : public TileAttentionBase<TileAttentionPass> {
void runOnOperation() override;
};

struct ConvertAttentionToOnlineAttentionPass
: public ConvertAttentionToOnlineAttentionBase<
struct ConvertAttentionToOnlineAttentionPass final
: ConvertAttentionToOnlineAttentionBase<
ConvertAttentionToOnlineAttentionPass> {
void getDependentDialects(DialectRegistry &registry) const override {
registry
Expand Down

0 comments on commit bf8cfce

Please sign in to comment.