Skip to content

Commit fb8cdf8

Browse files
0.22 Cherry-picks continued (#9004)
Co-authored-by: GdoongMathew <[email protected]>
1 parent d434a1e commit fb8cdf8

File tree

16 files changed

+220
-447
lines changed

16 files changed

+220
-447
lines changed

.github/workflows/lint.yml

+39-38
Original file line numberDiff line numberDiff line change
@@ -40,34 +40,34 @@ jobs:
4040
exit 1
4141
fi
4242
43-
c-source:
44-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
45-
permissions:
46-
id-token: write
47-
contents: read
48-
with:
49-
repository: pytorch/vision
50-
test-infra-ref: release/2.7
51-
script: |
52-
set -euo pipefail
53-
54-
echo '::group::Setup environment'
55-
CONDA_PATH=$(which conda)
56-
eval "$(${CONDA_PATH} shell.bash hook)"
57-
conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
58-
conda activate ci
59-
echo '::endgroup::'
60-
61-
62-
echo '::group::Lint C source'
63-
set +e
64-
./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"
65-
66-
if [ $? -ne 0 ]; then
67-
git --no-pager diff
68-
exit 1
69-
fi
70-
echo '::endgroup::'
43+
# c-source:
44+
# uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
45+
# permissions:
46+
# id-token: write
47+
# contents: read
48+
# with:
49+
# repository: pytorch/vision
50+
# test-infra-ref: main
51+
# script: |
52+
# set -euo pipefail
53+
54+
# echo '::group::Setup environment'
55+
# CONDA_PATH=$(which conda)
56+
# eval "$(${CONDA_PATH} shell.bash hook)"
57+
# conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
58+
# conda activate ci
59+
# echo '::endgroup::'
60+
61+
62+
# echo '::group::Lint C source'
63+
# set +e
64+
# ./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"
65+
66+
# if [ $? -ne 0 ]; then
67+
# git --no-pager diff
68+
# exit 1
69+
# fi
70+
# echo '::endgroup::'
7171

7272

7373
python-types:
@@ -99,13 +99,14 @@ jobs:
9999
mypy --install-types --non-interactive --config-file mypy.ini
100100
echo '::endgroup::'
101101
102-
bc:
103-
if: github.event.pull_request
104-
runs-on: ubuntu-latest
105-
steps:
106-
- name: Run BC Lint Action
107-
uses: pytorch/test-infra/.github/actions/bc-lint@release/2.7
108-
with:
109-
repo: ${{ github.event.pull_request.head.repo.full_name }}
110-
base_sha: ${{ github.event.pull_request.base.sha }}
111-
head_sha: ${{ github.event.pull_request.head.sha }}
102+
# bc:
103+
# if: github.event.pull_request
104+
# runs-on: ubuntu-latest
105+
# steps:
106+
# - name: Run BC Lint Action
107+
# uses: pytorch/test-infra/.github/actions/bc-lint@main
108+
# with:
109+
# repo: ${{ github.event.pull_request.head.repo.full_name }}
110+
# base_sha: ${{ github.event.pull_request.base.sha }}
111+
# head_sha: ${{ github.event.pull_request.head.sha }}
112+
# >>>>>>> 8a06122218 (Deactivate bc linter (#8999))

docs/source/io.rst

+7-8
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,16 @@ IO operations
8686
read_file
8787
write_file
8888

89-
Video
90-
-----
89+
Video - DEPREACTED
90+
------------------
9191

9292
.. warning::
9393

94-
Torchvision supports video decoding through different APIs listed below,
95-
some of which are still in BETA stage. In the near future, we intend to
96-
centralize PyTorch's video decoding capabilities within the `torchcodec
97-
<https://github.com/pytorch/torchcodec>`_ project. We encourage you to try
98-
it out and share your feedback, as the torchvision video decoders will
99-
eventually be deprecated.
94+
DEPRECATED: All the video decoding and encoding capabilities of torchvision
95+
are deprecated from version 0.22 and will be removed in version 0.24. We
96+
recommend that you migrate to
97+
`TorchCodec <https://github.com/pytorch/torchcodec>`__, where we'll
98+
consolidate the future decoding/encoding capabilities of PyTorch
10099

101100
.. autosummary::
102101
:toctree: generated/

0 commit comments

Comments
 (0)