Skip to content

Commit e0f850b

Browse files
committed
Add file
1 parent 49f2919 commit e0f850b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import warnings
2+
3+
def _raise_video_deprecation_warning():
4+
warnings.warn(UserWarning,
5+
"The video decoding and encoding capabilities of torchvision "
6+
"are deprecated from version 0.22 and will be removed in version 0.24. "
7+
"We recommend that you migrate to TorchCodec, where we'll consolidate "
8+
"the future decoding/encoding capabilities of PyTorch: "
9+
"https://github.com/pytorch/torchcodec"
10+
)

0 commit comments

Comments
 (0)