Skip to content

Commit 59c9e77

Browse files
authored
Merge branch 'main' into 099_gpu_quant
2 parents 18b5d56 + fb63044 commit 59c9e77

File tree

6 files changed

+6
-42
lines changed

6 files changed

+6
-42
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ beginner
33
intermediate
44
advanced
55
pytorch_basics
6-
recipes
6+
/recipes
77
prototype
88

99
#data things

.jenkins/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
5757
# IMPORTANT NOTE: We assume that each tutorial has a UNIQUE filename.
5858
FILES_TO_RUN=$(python .jenkins/get_files_to_run.py)
5959
echo "FILES_TO_RUN: " ${FILES_TO_RUN}
60+
# Files to run must be accessible to subprocessed (at least to `download_data.py`)
61+
export FILES_TO_RUN
6062

6163
# Step 3: Run `make docs` to generate HTML files and static files for these tutorials
6264
make docs

beginner_source/basics/optimization_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def train_loop(dataloader, model, loss_fn, optimizer):
163163
optimizer.zero_grad()
164164

165165
if batch % 100 == 0:
166-
loss, current = loss.item(), (batch + 1) * len(X)
166+
loss, current = loss.item(), batch * batch_size + len(X)
167167
print(f"loss: {loss:>7f} [{current:>5d}/{size:>5d}]")
168168

169169

recipes_source/recipes/defining_a_neural_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
In this recipe, we will use ``torch.nn`` to define a neural network
1919
intended for the `MNIST
20-
dataset <https://pytorch.org/docs/stable/torchvision/datasets.html#mnist>`__.
20+
dataset <hhttps://pytorch.org/vision/stable/generated/torchvision.datasets.MNIST.html#torchvision.datasets.MNIST>`__.
2121
2222
Setup
2323
-----

recipes_source/recipes/tensorboard_with_pytorch.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -121,44 +121,6 @@ def train_model(iter):
121121
#
122122

123123

124-
######################################################################
125-
# Share TensorBoard dashboards
126-
# ----------------------------
127-
#
128-
# `TensorBoard.dev <https://tensorboard.dev/>`_ lets you upload and share
129-
# your ML experiment results with anyone. Use ``TensorBoard.dev`` to host,
130-
# track, and share your TensorBoard dashboards.
131-
#
132-
# Install the latest version of TensorBoard to use the ``uploader``.
133-
#
134-
# .. code-block:: sh
135-
#
136-
# pip install tensorboard --upgrade
137-
#
138-
# Use a simple command to upload and share your TensorBoard.
139-
#
140-
# .. code-block:: sh
141-
#
142-
# tensorboard dev upload --logdir runs \
143-
# --name "My latest experiment" \ # optional
144-
# --description "Simple comparison of several hyperparameters" # optional
145-
#
146-
# For help, run ``$ tensorboard dev --help``.
147-
#
148-
# **Note:** Uploaded TensorBoards are public and visible to everyone.
149-
# Do not upload sensitive data.
150-
#
151-
# View your TensorBoard live at URL provided in your terminal.
152-
# For example: `https://tensorboard.dev/experiment/AdYd1TgeTlaLWXx6I8JUbA <https://tensorboard.dev/experiment/AdYd1TgeTlaLWXx6I8JUbA>`_
153-
#
154-
#
155-
# .. image:: ../../_static/img/thumbnails/tensorboard_dev.png
156-
# :scale: 40 %
157-
#
158-
#
159-
# .. note::
160-
# ``TensorBoard.dev`` currently supports scalars, graphs, histograms, distributions, ``hparams``, and text dashboards.
161-
162124
########################################################################
163125
# Learn More
164126
# ----------------------------

recipes_source/torch_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
######################################################################
1010
#
11-
# This tutorial introduces the ``TORCH_LOGS`` environment variable, as well ass the Python API, and
11+
# This tutorial introduces the ``TORCH_LOGS`` environment variable, as well as the Python API, and
1212
# demonstrates how to apply it to observe the phases of ``torch.compile``.
1313
#
1414
# .. note::

0 commit comments

Comments
 (0)