Skip to content

Commit ba7ce61

Browse files
authored
Add google collab link for gallery examples (#7843)
1 parent 9040793 commit ba7ce61

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
# cores (`-j auto`). Thus, we limit to a single process (`-j 1`) here.
5656
sed -i -e 's/-j auto/-j 1/' Makefile
5757
make html
58+
59+
mkdir build/html/_generated_ipynb_notebooks
60+
for file in `find build/html/_downloads`; do
61+
if [[ $file == *.ipynb ]]; then
62+
cp $file build/html/_generated_ipynb_notebooks/
63+
fi
64+
done
5865
5966
cp -r build/html "${RUNNER_ARTIFACT_DIR}"
6067

gallery/plot_datapoints.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Datapoints FAQ
44
==============
55
6+
https://colab.research.google.com/github/pytorch/vision/blob/gh-pages/_generated_ipynb_notebooks/plot_datapoints.ipynb
7+
68
Datapoints are Tensor subclasses introduced together with
79
``torchvision.transforms.v2``. This example showcases what these datapoints are
810
and how they behave.

0 commit comments

Comments
 (0)