Skip to content

Commit

Permalink
issue: Make torch.where output contiguous before passing to fft.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Jul 19, 2022
1 parent 6ded2eb commit cbce623
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion direct/nn/crossdomain/crossdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _backward_operator(
sampling_mask == 0,
torch.tensor([0.0], dtype=kspace.dtype).to(kspace.device),
kspace,
),
).contiguous(),
self._spatial_dims,
),
sensitivity_map,
Expand Down
2 changes: 1 addition & 1 deletion direct/nn/kikinet/kikinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def forward(
sampling_mask == 0,
torch.tensor([0.0], dtype=kspace.dtype).to(kspace.device),
kspace,
),
).contiguous(),
self._spatial_dims,
),
sensitivity_map,
Expand Down
2 changes: 1 addition & 1 deletion direct/nn/lpd/lpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _backward_operator(
sampling_mask == 0,
torch.tensor([0.0], dtype=kspace.dtype).to(kspace.device),
kspace,
),
).contiguous(),
self._spatial_dims,
),
sensitivity_map,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def finalize_options(self):
"numpy>=1.21.2",
"h5py==3.3.0",
"omegaconf==2.1.1",
"torch==1.11.0",
"torch>=1.10.0",
"torchvision",
"scikit-image>=0.19.0",
"scikit-learn>=1.0.1",
Expand Down

0 comments on commit cbce623

Please sign in to comment.