Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/jaxPublic

Commita418956

Browse files
apaszkeGoogle-ML-Automation
authored andcommitted
[Mosaic TPU] Remove the relayout insertion pass from tpu.td
PiperOrigin-RevId: 837541620
1 parent42d0f9b commita418956

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

‎jaxlib/mosaic/dialect/tpu/tpu.td‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,22 +1569,6 @@ def InferVectorLayoutPass : Pass<"tpu-infer-vector-layout", "::mlir::func::FuncO
15691569
];
15701570
}
15711571

1572-
def RelayoutInsertionPass : Pass<"tpu-relayout-insertion", "::mlir::func::FuncOp"> {
1573-
let dependentDialects = [
1574-
"::mlir::arith::ArithDialect",
1575-
"::mlir::func::FuncDialect",
1576-
"::mlir::tpu::TPUDialect",
1577-
];
1578-
let constructor = "::mlir::tpu::createRelayoutInsertionPass()";
1579-
let options = [
1580-
// If hardware_generation is not set, the default value of -1 will crash on
1581-
// runOnOperation.
1582-
Option<"hardware_generation", "hardware-generation", "int", /*default=*/"-1", "">,
1583-
Option<"lane_count", "lane-count", "int", /*default=*/"128", "">,
1584-
Option<"sublane_count", "sublane-count", "int", /*default=*/"8", "">,
1585-
];
1586-
}
1587-
15881572
def ApplyVectorLayoutPass : Pass<"tpu-apply-vector-layout", "::mlir::func::FuncOp"> {
15891573
let dependentDialects = [
15901574
"::mlir::arith::ArithDialect",

‎jaxlib/mosaic/dialect/tpu/tpu_dialect.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ std::unique_ptr<OperationPass<func::FuncOp>> createInferVectorLayoutPass(
8383
const TpuTilingFlags& tpu_tiling_flags = {},
8484
bool shape_invariant_numerics =true);
8585

86-
std::unique_ptr<OperationPass<func::FuncOp>>createRelayoutInsertionPass(
87-
int hardware_generation = -1,
88-
std::array<int64_t,2> target_shape = {8,128});
89-
9086
std::unique_ptr<OperationPass<func::FuncOp>>createApplyVectorLayoutPass(
9187
const ApplyVectorLayoutContext &ctx = ApplyVectorLayoutContext{});
9288

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp