Skip to content

Commit 01a4a80

Browse files
authored
Merge branch 'main' into main
2 parents 0dfcdba + 5efa2e5 commit 01a4a80

25 files changed

+682
-912
lines changed

.jenkins/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sudo apt-get install -y pandoc
2323
# Nightly - pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
2424
# Install 2.2 for testing - uncomment to install nightly binaries (update the version as needed).
2525
# pip uninstall -y torch torchvision torchaudio torchtext torchdata
26-
# pip3 install torch==2.3.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu121
26+
# pip3 install torch==2.3.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu121
2727

2828
# Install two language tokenizers for Translation with TorchText tutorial
2929
python -m spacy download en_core_web_sm
@@ -36,7 +36,6 @@ awsv2 configure set default.s3.multipart_threshold 5120MB
3636
if [[ "${JOB_TYPE}" == "worker" ]]; then
3737
# Step 1: Remove runnable code from tutorials that are not supposed to be run
3838
python $DIR/remove_runnable_code.py beginner_source/aws_distributed_training_tutorial.py beginner_source/aws_distributed_training_tutorial.py || true
39-
# python $DIR/remove_runnable_code.py advanced_source/ddp_pipeline_tutorial.py advanced_source/ddp_pipeline_tutorial.py || true
4039
# Temp remove for mnist download issue. (Re-enabled for 1.8.1)
4140
# python $DIR/remove_runnable_code.py beginner_source/fgsm_tutorial.py beginner_source/fgsm_tutorial.py || true
4241
# python $DIR/remove_runnable_code.py intermediate_source/spatial_transformer_tutorial.py intermediate_source/spatial_transformer_tutorial.py || true

.jenkins/validate_tutorials_built.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
3131
"advanced_source/super_resolution_with_onnxruntime",
3232
"advanced_source/python_custom_ops", # https://github.com/pytorch/pytorch/issues/127443
33-
"advanced_source/ddp_pipeline", # requires 4 gpus
3433
"advanced_source/usb_semisup_learn", # fails with CUDA OOM error, should try on a different worker
3534
"prototype_source/fx_graph_mode_ptq_dynamic",
3635
"prototype_source/vmap_recipe",
@@ -54,7 +53,10 @@
5453
"recipes_source/recipes/Captum_Recipe",
5554
"intermediate_source/flask_rest_api_tutorial",
5655
"intermediate_source/text_to_speech_with_torchaudio",
57-
"intermediate_source/tensorboard_profiler_tutorial" # reenable after 2.0 release.
56+
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
57+
"intermediate_source/inductor_debug_cpu", # reenable after 2942
58+
"beginner_source/onnx/onnx_registry_tutorial", # reenable after 2941 is fixed.
59+
"intermediate_source/torch_export_tutorial" # reenable after 2940 is fixed.
5860
]
5961

6062
def tutorial_source_dirs() -> List[Path]:

_static/css/custom.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,23 @@
7171
.sd-card:hover:after {
7272
transform: scaleX(1);
7373
}
74+
75+
.card-prerequisites:hover {
76+
transition: none;
77+
border: none;
78+
}
79+
80+
.card-prerequisites:hover:after {
81+
transition: none;
82+
transform: none;
83+
}
84+
85+
.card-prerequisites:after {
86+
display: block;
87+
content: '';
88+
border-bottom: none;
89+
background-color: #fff;
90+
transform: none;
91+
transition: none;
92+
transform-origin: none;
93+
}

advanced_source/cpp_custom_ops.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ Custom C++ and CUDA Operators
88
.. grid:: 2
99

1010
.. grid-item-card:: :octicon:`mortar-board;1em;` What you will learn
11+
:class-card: card-prerequisites
1112

12-
* How to integrate custom operators written in C++/CUDA with PyTorch
13-
* How to test custom operators using ``torch.library.opcheck``
13+
* How to integrate custom operators written in C++/CUDA with PyTorch
14+
* How to test custom operators using ``torch.library.opcheck``
1415

1516
.. grid-item-card:: :octicon:`list-unordered;1em;` Prerequisites
17+
:class-card: card-prerequisites
1618

17-
* PyTorch 2.4 or later
18-
* Basic understanding of C++ and CUDA programming
19+
* PyTorch 2.4 or later
20+
* Basic understanding of C++ and CUDA programming
1921

2022
PyTorch offers a large library of operators that work on Tensors (e.g. torch.add, torch.sum, etc).
2123
However, you may wish to bring a new custom operator to PyTorch. This tutorial demonstrates the

advanced_source/cpp_export.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ minimal ``CMakeLists.txt`` to build it could look as simple as:
203203
204204
add_executable(example-app example-app.cpp)
205205
target_link_libraries(example-app "${TORCH_LIBRARIES}")
206-
set_property(TARGET example-app PROPERTY CXX_STANDARD 14)
206+
set_property(TARGET example-app PROPERTY CXX_STANDARD 17)
207207
208208
The last thing we need to build the example application is the LibTorch
209209
distribution. You can always grab the latest stable release from the `download

0 commit comments

Comments
 (0)