mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
[Mosaic TPU] Propagate the memory space change for memref bitcast and reshape.
PiperOrigin-RevId: 674067380
This commit is contained in:
parent
178fb03050
commit
8d93e101b9
@ -78,6 +78,14 @@ LogicalResult specializeMemorySpace(TypedValue<MemRefType> value,
|
||||
updateResultFrom(op, op.getInput().getType());
|
||||
continue;
|
||||
}
|
||||
if (auto op = dyn_cast<tpu::MemRefBitcastOp>(some_op)) {
|
||||
updateResultFrom(op, op.getInput().getType());
|
||||
continue;
|
||||
}
|
||||
if (auto op = dyn_cast<tpu::MemRefReshapeOp>(some_op)) {
|
||||
updateResultFrom(op, op.getInput().getType());
|
||||
continue;
|
||||
}
|
||||
if (auto op = dyn_cast<tpu::EraseLayoutOp>(some_op)) {
|
||||
updateResultFrom(op, op.getOperand().getType());
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user