Skip to content

get rid of flask tutorials #3403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 11 additions & 1 deletion .github/workflows/link_checkPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45.0.6
with:
files: |
**/*.md
**/*.html
**/*.rst
**/*.txt

- name: Check for Skip Label
id: skip-label
Expand All @@ -33,7 +39,7 @@ jobs:
return labels.data.some(label => label.name === 'skip-link-check');

- name: Check Links
if: steps.skip-label.outputs.result == 'false'
if: steps.skip-label.outputs.result == 'false' && steps.changed-files.outputs.any_changed == 'true'
uses: lycheeverse/lychee-action@v1
with:
args: --accept=200,403,429 --base . --verbose --no-progress ${{ steps.changed-files.outputs.all_changed_files }}
Expand All @@ -43,6 +49,10 @@ jobs:
- name: Skip Message
if: steps.skip-label.outputs.result == 'true'
run: echo "Link check was skipped due to the presence of the 'skip-link-check' label."

- name: No Files to Check
if: steps.skip-label.outputs.result == 'false' && steps.changed-files.outputs.any_changed == 'false'
run: echo "No relevant files were changed in this PR that require link checking."

- name: Suggestions
if: failure()
Expand Down
1 change: 0 additions & 1 deletion .jenkins/validate_tutorials_built.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"recipes_source/recipes/timer_quick_start",
"recipes_source/recipes/amp_recipe",
"recipes_source/recipes/Captum_Recipe",
"intermediate_source/flask_rest_api_tutorial",
"intermediate_source/text_to_speech_with_torchaudio",
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
"advanced_source/semi_structured_sparse", # reenable after 3303 is fixed.
Expand Down
3 changes: 0 additions & 3 deletions .lycheeignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ https://pytorch.org/tutorials/beginner/colab/n
# Ignore local host link from intermediate_source/tensorboard_tutorial.rst
http://localhost:6006

# Ignore local host link from recipes_source/deployment_with_flask.rst
http://localhost:5000/predict

# Ignore local host link from advanced_source/cpp_frontend.rst
https://www.uber.com/blog/deep-neuroevolution/
9 changes: 0 additions & 9 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,6 @@ Welcome to PyTorch Tutorials

.. Deploying PyTorch Models in Production


.. customcarditem::
:header: Deploying PyTorch in Python via a REST API with Flask
:card_description: Deploy a PyTorch model using Flask and expose a REST API for model inference using the example of a pretrained DenseNet 121 model which detects the image.
:image: _static/img/thumbnails/cropped/Deploying-PyTorch-in-Python-via-a-REST-API-with-Flask.png
:link: intermediate/flask_rest_api_tutorial.html
:tags: Production

.. customcarditem::
:header: Introduction to TorchScript
:card_description: Introduction to TorchScript, an intermediate representation of a PyTorch model (subclass of nn.Module) that can then be run in a high-performance environment such as C++.
Expand Down Expand Up @@ -1005,7 +997,6 @@ Additional Resources
:caption: Deploying PyTorch Models in Production

beginner/onnx/intro_onnx
intermediate/flask_rest_api_tutorial
beginner/Intro_to_TorchScript_tutorial
advanced/cpp_export
advanced/super_resolution_with_onnxruntime
Expand Down
6 changes: 1 addition & 5 deletions intermediate_source/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ Intermediate tutorials
Spatial Transformer Networks Tutorial
https://pytorch.org/tutorials/intermediate/spatial_transformer_tutorial.html

8. flask_rest_api_tutorial.py
Deploying PyTorch and Building a REST API using Flask
https://pytorch.org/tutorials/intermediate/flask_rest_api_tutorial.html

9. nvfuser_intro_tutorial.py
8. nvfuser_intro_tutorial.py
Introduction to nvFuser
https://pytorch.org/tutorials/intermediate/nvfuser_intro_tutorial.html
Loading
Loading