Skip to content

Commit 5f5936e

Browse files
committed
Fix docstring formatting: backticks and spacing
1 parent 7adf291 commit 5f5936e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/networks/blocks/warp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def __init__(self, mode=GridSampleMode.BILINEAR.value, padding_mode=GridSamplePa
5353
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
56-
Note that using mode= ``"nearest"`` makes the warping operation effectively non-differentiable:
56+
Note that using ``mode="nearest"`` makes the warping operation effectively non-differentiable:
5757
gradients are zero almost everywhere, which can block gradient flow during training.
58-
For learning-based registration, use "bilinear" (2D) or "trilinear" (3D) interpolation instead.
58+
For learning-based registration, use ``"bilinear"`` (2D) or ``"trilinear"`` (3D) interpolation instead.
5959
6060
See https://github.com/Project-MONAI/tutorials/blob/main/3d_registration/learn2reg_oasis_unpaired_brain_mr.ipynb
6161
for examples of semi-supervised registration using segmentations.

0 commit comments

Comments
 (0)