Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zasdfgbnm committed Jan 29, 2025
1 parent 4e5ab6e commit 2fe5579
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions csrc/device_lower/pass/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,8 @@ void IndexLowering::handle(const LoadStoreOp* ldst) {
auto index = IrBuilder::create<Val>(
std::vector<int64_t>{0, 0},
ArrayType{std::make_shared<DataType>(DataType::UInt16), 2});
in = IrBuilder::create<kir::TensorIndex>(tv, index, DataType::TMemAddress);
in = IrBuilder::create<kir::TensorIndex>(
tv, index, DataType::TMemAddress);
} else {
in = lowerSrcIndex(
ldst->in(),
Expand All @@ -2179,7 +2180,8 @@ void IndexLowering::handle(const LoadStoreOp* ldst) {
auto index = IrBuilder::create<Val>(
std::vector<int64_t>{0, 0},
ArrayType{std::make_shared<DataType>(DataType::UInt16), 2});
out = IrBuilder::create<kir::TensorIndex>(tv, index, DataType::TMemAddress);
out = IrBuilder::create<kir::TensorIndex>(
tv, index, DataType::TMemAddress);
} else {
out = lowerDstIndex(
ldst->out(), {}, ir_utils::isCpAsyncOp(ldst), as_type);
Expand Down

0 comments on commit 2fe5579

Please sign in to comment.