Skip to content

Commit

Permalink
Remove some relative imports (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuckley authored Dec 4, 2024
1 parent 399eabb commit 8f8736c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion torchkbnufft/functional/interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torch
from torch import Tensor

from .._autograd.interp import (
from torchkbnufft._autograd.interp import (
KbSpmatInterpAdjoint,
KbSpmatInterpForward,
KbTableInterpAdjoint,
Expand Down
4 changes: 2 additions & 2 deletions torchkbnufft/functional/nufft.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import torch
from torch import Tensor

from .._nufft.fft import fft_and_scale, ifft_and_scale
from .interp import (
from torchkbnufft._nufft.fft import fft_and_scale, ifft_and_scale
from torchkbnufft.functional.interp import (
kb_spmat_interp,
kb_spmat_interp_adjoint,
kb_table_interp,
Expand Down
2 changes: 1 addition & 1 deletion torchkbnufft/modules/_kbmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import torch
import torch.nn as nn

from .._nufft.utils import DTYPE_MAP, init_fn
from torchkbnufft._nufft.utils import DTYPE_MAP, init_fn


class KbModule(nn.Module):
Expand Down
2 changes: 1 addition & 1 deletion torchkbnufft/modules/kbinterp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import torchkbnufft.functional as tkbnF
from torch import Tensor

from ._kbmodule import KbModule
from torchkbnufft.modules._kbmodule import KbModule


class KbInterpModule(KbModule):
Expand Down
4 changes: 2 additions & 2 deletions torchkbnufft/modules/kbnufft.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import torchkbnufft.functional as tkbnF
from torch import Tensor

from .._nufft.utils import compute_scaling_coefs
from ._kbmodule import KbModule
from torchkbnufft._nufft.utils import compute_scaling_coefs
from torchkbnufft.modules._kbmodule import KbModule


class KbNufftModule(KbModule):
Expand Down

0 comments on commit 8f8736c

Please sign in to comment.