Skip to content

Commit d70f4a1

Browse files
committed
Use size param
1 parent d03d0e3 commit d70f4a1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

decoder_native_transforms.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ We want to support this user-facing API:
1111
fps=30,
1212
),
1313
torchvision.transforms.v2.Resize(
14-
width=640,
15-
height=480,
14+
size=(640, 480)
1615
),
1716
torchvision.transforms.v2.RandomCrop(
18-
width=32,
19-
height=32,
17+
size=(32, 32)
2018
),
2119
]
2220
)

0 commit comments

Comments
 (0)