Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 39 additions & 38 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ jobs:
exit 1
fi

c-source:
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
permissions:
id-token: write
contents: read
with:
repository: pytorch/vision
test-infra-ref: release/2.7
script: |
set -euo pipefail

echo '::group::Setup environment'
CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)"
conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
conda activate ci
echo '::endgroup::'


echo '::group::Lint C source'
set +e
./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"

if [ $? -ne 0 ]; then
git --no-pager diff
exit 1
fi
echo '::endgroup::'
# c-source:
# uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
# permissions:
# id-token: write
# contents: read
# with:
# repository: pytorch/vision
# test-infra-ref: main
# script: |
# set -euo pipefail

# echo '::group::Setup environment'
# CONDA_PATH=$(which conda)
# eval "$(${CONDA_PATH} shell.bash hook)"
# conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
# conda activate ci
# echo '::endgroup::'


# echo '::group::Lint C source'
# set +e
# ./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"

# if [ $? -ne 0 ]; then
# git --no-pager diff
# exit 1
# fi
# echo '::endgroup::'


python-types:
Expand Down Expand Up @@ -99,13 +99,14 @@ jobs:
mypy --install-types --non-interactive --config-file mypy.ini
echo '::endgroup::'

bc:
if: github.event.pull_request
runs-on: ubuntu-latest
steps:
- name: Run BC Lint Action
uses: pytorch/test-infra/.github/actions/bc-lint@release/2.7
with:
repo: ${{ github.event.pull_request.head.repo.full_name }}
base_sha: ${{ github.event.pull_request.base.sha }}
head_sha: ${{ github.event.pull_request.head.sha }}
# bc:
# if: github.event.pull_request
# runs-on: ubuntu-latest
# steps:
# - name: Run BC Lint Action
# uses: pytorch/test-infra/.github/actions/bc-lint@main
# with:
# repo: ${{ github.event.pull_request.head.repo.full_name }}
# base_sha: ${{ github.event.pull_request.base.sha }}
# head_sha: ${{ github.event.pull_request.head.sha }}
# >>>>>>> 8a06122218 (Deactivate bc linter (#8999))
15 changes: 7 additions & 8 deletions docs/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,16 @@ IO operations
read_file
write_file

Video
-----
Video - DEPREACTED
------------------

.. warning::

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

.. autosummary::
:toctree: generated/
Expand Down
Loading
Loading