Skip to content

Commit ef23607

Browse files
committed
Update on "[inductor] add lowering for repeat_interleave.Tensor with output size specified (#147160)"
[ghstack-poisoned]
1 parent 6c37575 commit ef23607

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/inductor/test_torchinductor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13626,7 +13626,6 @@ def forward(self, x):
1362613626
FileCheck().check("cpp_fused_add_0").run(code)
1362713627
self.assertEqual(refe_out, test_out)
1362813628

13629-
1363013629
@parametrize("dtype", [torch.int32, torch.int64])
1363113630
def test_repeat_interleave_Tensor_decomp(self, dtype):
1363213631
device = "cpu"

torch/_inductor/decomposition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,4 +1163,6 @@ def repeast_interleave_Tensor(
11631163
return NotImplemented
11641164
cumsum = repeat.cumsum(0)
11651165
pos = torch.arange(output_size, device=repeat.device)
1166-
return torch.searchsorted(cumsum, pos, out_int32=(repeat.dtype == torch.int32), right=True)
1166+
return torch.searchsorted(
1167+
cumsum, pos, out_int32=(repeat.dtype == torch.int32), right=True
1168+
)

0 commit comments

Comments
 (0)