From c338dda6be98913ddf98085402e9e0b105de6783 Mon Sep 17 00:00:00 2001 From: eellison Date: Fri, 17 Jan 2025 17:18:53 +0000 Subject: [PATCH] fix test_rng bisector test (#143662) Pull Request resolved: https://github.com/pytorch/pytorch/pull/143662 Approved by: https://github.com/zou3519 --- torch/_inductor/inductor_prims.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/_inductor/inductor_prims.py b/torch/_inductor/inductor_prims.py index caba77371aa..ae48e868707 100644 --- a/torch/_inductor/inductor_prims.py +++ b/torch/_inductor/inductor_prims.py @@ -65,7 +65,7 @@ seeds = make_prim( lookup_seed = make_prim( # if inductor_lookup_seed changes, update partitioners.py "inductor_lookup_seed(Tensor seeds, int index) -> Tensor", - lambda seeds, index: seeds[index], + lambda seeds, index: seeds[index].clone(), doc="Extract a single seed from the result of inductor_seeds()", ) # inductor_random() doesn't accept a dtype.