mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix out_tensor device in diag_test.py (#134020)
This benchmark fails if device='cuda' but out_tensor is on cpu Pull Request resolved: https://github.com/pytorch/pytorch/pull/134020 Approved by: https://github.com/soulitzer
This commit is contained in:
committed by
PyTorch MergeBot
parent
6c1e2d2462
commit
a3e1416c05
@ -31,6 +31,7 @@ class DiagBenchmark(op_bench.TorchBenchmarkBase):
|
||||
"out": out,
|
||||
"out_tensor": torch.tensor(
|
||||
(),
|
||||
device=device,
|
||||
),
|
||||
}
|
||||
self.set_module_name("diag")
|
||||
|
Reference in New Issue
Block a user