Skip to content

Commit 63cd021

Browse files
authored
Merge branch 'main' into mgs28-char-rnn-update
2 parents 2d46054 + 76bd6d3 commit 63cd021

21 files changed

+261
-352
lines changed

.github/workflows/StalePRs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ jobs:
5757
const STALE_CLOSE_THRESHOLD_MS = 1000 * 60 * 60 * 24 * 30;
5858
5959
const STALE_MESSAGE =
60-
"Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as `Stale`. <br>" +
61-
"Feel free to remove the `Stale` label if you feel this was a mistake. <br>" +
62-
"If you are unable to remove the `Stale` label please contact a maintainer in order to do so. <br>" +
60+
"Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as `stale`. <br>" +
61+
"Feel free to remove the `stale` label if you feel this was a mistake. <br>" +
62+
"If you are unable to remove the `stale` label please contact a maintainer in order to do so. <br>" +
6363
"If you want the bot to never mark this PR stale again, add the `no-stale` label.<br>" +
64-
"`Stale` pull requests will automatically be closed after 30 days of inactivity.<br>";
64+
"`stale` pull requests will automatically be closed after 30 days of inactivity.<br>";
6565
6666
let numAPIRequests = 0;
6767
let numProcessed = 0;
@@ -79,7 +79,7 @@ jobs:
7979
8080
// Check if the PR is stale, according to our configured thresholds.
8181
let staleThresholdMillis;
82-
if (labels.includes("Stale")) {
82+
if (labels.includes("stale")) {
8383
core.info(`[${pull.number}] PR is labeled stale, checking whether we should close it.`);
8484
staleThresholdMillis = STALE_CLOSE_THRESHOLD_MS;
8585
} else {
@@ -97,7 +97,7 @@ jobs:
9797
9898
// At this point, we know we should do something.
9999
// For PRs already labeled stale, close them.
100-
if (labels.includes("Stale")) {
100+
if (labels.includes("stale")) {
101101
core.info(`[${pull.number}] Closing PR.`);
102102
numAPIRequests += 1;
103103
await github.rest.issues.update({
@@ -123,7 +123,7 @@ jobs:
123123
owner: "pytorch",
124124
repo: "tutorials",
125125
issue_number: pull.number,
126-
labels: ["Stale"],
126+
labels: ["stale"],
127127
});
128128
}
129129
}

.github/workflows/link_checkPR.yml

Lines changed: 29 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Checks links in a PR to ensure they are valid. If link is valid but failing, it can be added to the .lycheeignore file
2-
#Code source: https://github.com/lycheeverse/lychee-action/issues/238
2+
#Use the skip-link-check label on a PR to skip checking links on a PR
33

44
name: link check on PR
55

@@ -8,56 +8,45 @@ on:
88
branches: [main]
99

1010
jobs:
11-
check-links:
11+
linkChecker:
1212
runs-on: ubuntu-latest
13+
1314
steps:
14-
- name: Clone repository
15-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
1616
with:
17-
fetch-depth: 0
18-
ref: ${{github.event.pull_request.head.ref}}
19-
repository: ${{github.event.pull_request.head.repo.full_name}}
17+
fetch-depth: 1
2018

21-
- name: Check out main branch
22-
run: git checkout main
19+
- name: Get Changed Files
20+
id: changed-files
21+
uses: tj-actions/changed-files@v41
2322

24-
- name: Dump all links from main
25-
id: dump_links_from_main
26-
uses: lycheeverse/lychee-action@v1
23+
- name: Check for Skip Label
24+
id: skip-label
25+
uses: actions/github-script@v6
2726
with:
28-
args: |
29-
--dump
30-
--include-fragments
31-
.
32-
output: ./links-main.txt
33-
34-
- name: Stash untracked files
35-
run: git stash push --include-untracked
36-
37-
- name: Check out feature branch
38-
run: git checkout ${{ github.head_ref }}
39-
40-
- name: Apply stashed changes
41-
# Apply stashed changes, ignore errors if stash is empty
42-
run: git stash pop || true
43-
44-
- name: Append links-main.txt to .lycheeignore
45-
run: cat links-main.txt >> .lycheeignore
46-
47-
- name: Check links
27+
script: |
28+
const labels = await github.rest.issues.listLabelsOnIssue({
29+
owner: context.repo.owner,
30+
repo: context.repo.repo,
31+
issue_number: context.issue.number
32+
});
33+
return labels.data.some(label => label.name === 'skip-link-check');
34+
35+
- name: Check Links
36+
if: steps.skip-label.outputs.result == 'false'
4837
uses: lycheeverse/lychee-action@v1
4938
with:
50-
args: |
51-
--no-progress
52-
--include-fragments
53-
.
54-
# Fail action on broken links
39+
args: --accept=200,403,429 --base . --verbose --no-progress ${{ steps.changed-files.outputs.all_changed_files }}
40+
token: ${{ secrets.CUSTOM_TOKEN }}
5541
fail: true
56-
42+
43+
- name: Skip Message
44+
if: steps.skip-label.outputs.result == 'true'
45+
run: echo "Link check was skipped due to the presence of the 'skip-link-check' label."
46+
5747
- name: Suggestions
5848
if: failure()
5949
run: |
6050
echo -e "\nPlease review the links reported in the Check links step above."
61-
echo -e "If a link is valid but fails due to a CAPTCHA challenge, IP blocking, login requirements, etc.,
62-
consider adding such links to .lycheeignore file to bypass future checks.\n"
51+
echo -e "If a link is valid but fails due to a CAPTCHA challenge, IP blocking, login requirements, etc., consider adding such links to .lycheeignore file to bypass future checks.\n"
6352
exit 1

.lycheeignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# Used for links to be ignored during the link check.
22
# Add link to file along with comment as to why it should be ignored
3+
4+
#Example link in some of the tutorials that should be ignored
5+
file:///f:/libtmp/some_file
6+
7+
#Ignore links with "file:///" to catch any other example links
8+
file:\/\/\/.*
93.3 KB
Loading
Loading

_static/img/trace_xpu_img.png

88.3 KB
Loading

advanced_source/cpp_export.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Loading a TorchScript Model in C++
22
=====================================
33

4+
.. note:: TorchScript is no longer in active development.
5+
46
As its name suggests, the primary interface to PyTorch is the Python
57
programming language. While Python is a suitable and preferred language for
68
many scenarios requiring dynamism and ease of iteration, there are equally many

advanced_source/torch-script-parallelism.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Dynamic Parallelism in TorchScript
22
==================================
33

4+
.. note:: TorchScript is no longer in active development.
5+
46
In this tutorial, we introduce the syntax for doing *dynamic inter-op parallelism*
57
in TorchScript. This parallelism has the following properties:
68

advanced_source/torch_script_custom_classes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Extending TorchScript with Custom C++ Classes
22
===============================================
33

4+
.. note:: TorchScript is no longer in active development.
5+
46
This tutorial is a follow-on to the
57
:doc:`custom operator <torch_script_custom_ops>`
68
tutorial, and introduces the API we've built for binding C++ classes into TorchScript

beginner_source/Intro_to_TorchScript_tutorial.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
55
**Authors:** James Reed ([email protected]), Michael Suo ([email protected]), rev2
66
7+
.. note:: TorchScript is no longer in active development.
8+
79
This tutorial is an introduction to TorchScript, an intermediate
810
representation of a PyTorch model (subclass of ``nn.Module``) that
911
can then be run in a high-performance environment such as C++.

beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Deploying a Seq2Seq Model with TorchScript
44
==================================================
55
**Author:** `Matthew Inkawhich <https://github.com/MatthewInkawhich>`_
6+
7+
.. note:: TorchScript is no longer in active development.
68
"""
79

810

en-wordlist.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ DyNet
6969
EOS
7070
EPS
7171
Ecker
72+
ExecuTorch
7273
ExportDB
7374
FC
7475
FGSM
@@ -658,4 +659,11 @@ url
658659
colab
659660
sharders
660661
Criteo
661-
torchrec
662+
torchrec
663+
_batch_norm_impl_index
664+
convolution_overrideable
665+
aten
666+
XPU
667+
XPUs
668+
impl
669+
overrideable

0 commit comments

Comments
 (0)