Skip to content

Commit ea87126

Browse files
pre-commit-ci[bot]brudfors
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c9133b5 commit ea87126

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monai/networks/blocks/warp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def __init__(self, mode=GridSampleMode.BILINEAR.value, padding_mode=GridSamplePa
4747
- padding_mode: ``"zeros"``, ``"border"``, ``"reflection"``, 0, 1, ...
4848
4949
See also: :py:class:`monai.networks.layers.grid_pull`
50-
50+
5151
- jitter: bool, default=False
5252
Define reference grid on non-integer values
53-
Reference: B. Likar and F. Pernus. A heirarchical approach to elastic registration
53+
Reference: B. Likar and F. Pernus. A heirarchical approach to elastic registration
5454
based on mutual information. Image and Vision Computing, 19:33-44, 2001.
5555
"""
5656
super().__init__()
@@ -104,7 +104,7 @@ def get_reference_grid(self, ddf: torch.Tensor, jitter: bool=False, seed: int=0)
104104
self.ref_grid = grid.to(ddf)
105105
if jitter:
106106
# Define reference grid on non-integer values
107-
with torch.random.fork_rng(enabled=seed):
107+
with torch.random.fork_rng(enabled=seed):
108108
torch.random.manual_seed(seed)
109109
grid += torch.rand_like(grid)
110110
self.ref_grid.requires_grad = False

0 commit comments

Comments
 (0)