Commit 9eea871c authored by Mike McCann's avatar Mike McCann Committed by Boris Bonev
Browse files

Update README.md

Without putting `signal` on `device`, we get `RuntimeError: Expected all tensors to be on the same device` when `sht` is called.
parent 41293968
......@@ -186,7 +186,7 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
nlat = 512
nlon = 2*nlat
batch_size = 32
signal = torch.randn(batch_size, nlat, nlon)
signal = torch.randn(batch_size, nlat, nlon, device=device)
# transform data on an equiangular grid
sht = th.RealSHT(nlat, nlon, grid="equiangular").to(device)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment