Skip to content

Commit

Permalink
fix device mismatch in torchscript test
Browse files Browse the repository at this point in the history
  • Loading branch information
nateanl committed Feb 15, 2022
1 parent 864f98e commit 482cedd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def func(tensor):

def test_compute_power_spectral_density_matrix_with_mask(self):
def func(tensor):
mask = torch.rand(201, 100)
mask = torch.rand(201, 100, device=tensor.device)
return F.compute_power_spectral_density_matrix(tensor, mask=mask)

tensor = torch.rand(2, 201, 100, dtype=torch.cfloat)
Expand Down

0 comments on commit 482cedd

Please sign in to comment.