Skip to content

Commit e235fd6

Browse files
committed
get rid of flask tutorials
1 parent cccce6b commit e235fd6

File tree

8 files changed

+12
-644
lines changed

8 files changed

+12
-644
lines changed

.github/workflows/link_checkPR.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
- name: Get Changed Files
2020
id: changed-files
2121
uses: tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45.0.6
22+
with:
23+
files: |
24+
**/*.md
25+
**/*.html
26+
**/*.rst
27+
**/*.txt
2228
2329
- name: Check for Skip Label
2430
id: skip-label
@@ -33,7 +39,7 @@ jobs:
3339
return labels.data.some(label => label.name === 'skip-link-check');
3440
3541
- name: Check Links
36-
if: steps.skip-label.outputs.result == 'false'
42+
if: steps.skip-label.outputs.result == 'false' && steps.changed-files.outputs.any_changed == 'true'
3743
uses: lycheeverse/lychee-action@v1
3844
with:
3945
args: --accept=200,403,429 --base . --verbose --no-progress ${{ steps.changed-files.outputs.all_changed_files }}
@@ -43,6 +49,10 @@ jobs:
4349
- name: Skip Message
4450
if: steps.skip-label.outputs.result == 'true'
4551
run: echo "Link check was skipped due to the presence of the 'skip-link-check' label."
52+
53+
- name: No Files to Check
54+
if: steps.skip-label.outputs.result == 'false' && steps.changed-files.outputs.any_changed == 'false'
55+
run: echo "No relevant files were changed in this PR that require link checking."
4656

4757
- name: Suggestions
4858
if: failure()

.jenkins/validate_tutorials_built.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"recipes_source/recipes/timer_quick_start",
4949
"recipes_source/recipes/amp_recipe",
5050
"recipes_source/recipes/Captum_Recipe",
51-
"intermediate_source/flask_rest_api_tutorial",
5251
"intermediate_source/text_to_speech_with_torchaudio",
5352
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
5453
"advanced_source/semi_structured_sparse", # reenable after 3303 is fixed.

.lycheeignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ https://pytorch.org/tutorials/beginner/colab/n
1313
# Ignore local host link from intermediate_source/tensorboard_tutorial.rst
1414
http://localhost:6006
1515

16-
# Ignore local host link from recipes_source/deployment_with_flask.rst
17-
http://localhost:5000/predict
18-
1916
# Ignore local host link from advanced_source/cpp_frontend.rst
2017
https://www.uber.com/blog/deep-neuroevolution/

index.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,6 @@ Welcome to PyTorch Tutorials
322322

323323
.. Deploying PyTorch Models in Production
324324
325-
326-
.. customcarditem::
327-
:header: Deploying PyTorch in Python via a REST API with Flask
328-
: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.
329-
:image: _static/img/thumbnails/cropped/Deploying-PyTorch-in-Python-via-a-REST-API-with-Flask.png
330-
:link: intermediate/flask_rest_api_tutorial.html
331-
:tags: Production
332-
333325
.. customcarditem::
334326
:header: Introduction to TorchScript
335327
: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++.
@@ -1005,7 +997,6 @@ Additional Resources
1005997
:caption: Deploying PyTorch Models in Production
1006998

1007999
beginner/onnx/intro_onnx
1008-
intermediate/flask_rest_api_tutorial
10091000
beginner/Intro_to_TorchScript_tutorial
10101001
advanced/cpp_export
10111002
advanced/super_resolution_with_onnxruntime

intermediate_source/README.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ Intermediate tutorials
2929
Spatial Transformer Networks Tutorial
3030
https://pytorch.org/tutorials/intermediate/spatial_transformer_tutorial.html
3131

32-
8. flask_rest_api_tutorial.py
33-
Deploying PyTorch and Building a REST API using Flask
34-
https://pytorch.org/tutorials/intermediate/flask_rest_api_tutorial.html
35-
36-
9. nvfuser_intro_tutorial.py
32+
8. nvfuser_intro_tutorial.py
3733
Introduction to nvFuser
3834
https://pytorch.org/tutorials/intermediate/nvfuser_intro_tutorial.html

0 commit comments

Comments
 (0)