We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d43c5 commit 92f570eCopy full SHA for 92f570e
1 file changed
src/torchio/transforms/preprocessing/intensity/to.py
@@ -12,6 +12,8 @@
12
class To(IntensityTransform):
13
"""Convert the image tensor data type and/or device.
14
15
+ This transform is a thin wrapper around :func:`torch.Tensor.to`.
16
+
17
Args:
18
target: First argument to :func:`torch.Tensor.to`.
19
to_kwargs: Additional keyword arguments to pass to :func:`torch.Tensor.to`.
@@ -25,7 +27,6 @@ class To(IntensityTransform):
25
27
>>> ct_rescaled = rescale(ct_clamped)
26
28
>>> to_uint8 = tio.To(torch.uint8)
29
>>> ct_uint8 = to_uint8(ct_rescaled)
-
30
"""
31
32
def __init__(
0 commit comments