Skip to content

Commit 87c4885

Browse files
committed
punctuation
1 parent 56f4e00 commit 87c4885

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def pad(img: Tensor, padding: List[int], fill: int = 0, padding_mode: str = "con
427427
padding_mode (str): Type of padding. Should be: constant, edge, reflect or symmetric.
428428
Default is constant.
429429
430-
- constant: pads with a constant value, this value is specified with fill.
430+
- constant: pads with a constant value, this value is specified with fill
431431
432432
- edge: pads with the last value at the edge of the image.
433433
If input a 5D torch Tensor, the last 3 dimensions will be padded instead of the last 2

torchvision/transforms/transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ class Pad(torch.nn.Module):
359359
padding_mode (str): Type of padding. Should be: constant, edge, reflect or symmetric.
360360
Default is constant.
361361
362-
- constant: pads with a constant value, this value is specified with fill.
362+
- constant: pads with a constant value, this value is specified with fill
363363
364364
- edge: pads with the last value at the edge of the image.
365365
If input a 5D torch Tensor, the last 3 dimensions will be padded instead of the last 2
@@ -541,7 +541,7 @@ class RandomCrop(torch.nn.Module):
541541
padding_mode (str): Type of padding. Should be: constant, edge, reflect or symmetric.
542542
Default is constant.
543543
544-
- constant: pads with a constant value, this value is specified with fill.
544+
- constant: pads with a constant value, this value is specified with fill
545545
546546
- edge: pads with the last value at the edge of the image.
547547
If input a 5D torch Tensor, the last 3 dimensions will be padded instead of the last 2

0 commit comments

Comments
 (0)