fix test_rng bisector test (#143662)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/143662
Approved by: https://github.com/zou3519
This commit is contained in:
eellison 2025-01-17 17:18:53 +00:00 committed by PyTorch MergeBot
parent d02c396fbb
commit c338dda6be

View file

@ -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.