Skip to content

Commit

Permalink
Patch forward autograd (#23)
Browse files Browse the repository at this point in the history
* Patch forward autograd

* Increment version
  • Loading branch information
mmuckley committed Feb 4, 2021
1 parent d568c43 commit b5f6581
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion torchkbnufft/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Package info"""

__version__ = "1.0.0"
__version__ = "1.0.1"
__author__ = "Matthew Muckley"
__author_email__ = "matt.muckley@gmail.com"
__license__ = "MIT"
Expand Down
4 changes: 0 additions & 4 deletions torchkbnufft/_nufft/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def fft_and_scale(
pad_sizes.append(0)
pad_sizes.append(int(gd - im))

scaling_coef = scaling_coef.unsqueeze(0).unsqueeze(0)

# multiply by scaling_coef, pad, then fft
return fft_fn(
F.pad(image * scaling_coef, pad_sizes),
Expand Down Expand Up @@ -111,8 +109,6 @@ def ifft_and_scale(
# calculate crops
dims = torch.arange(len(im_size), device=image.device) + 2

scaling_coef = scaling_coef.unsqueeze(0).unsqueeze(0)

# ifft, crop, then multiply by scaling_coef conjugate
return (
crop_dims(
Expand Down

0 comments on commit b5f6581

Please sign in to comment.