Skip to content

Commit b804d49

Browse files
authored
Merge branch 'master' into patch-1
2 parents 01c6302 + c25aa7a commit b804d49

16 files changed

+1053
-509
lines changed

.devcontainer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spacy
1717
ray[tune]
1818

1919
# PyTorch Theme
20-
-e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
20+
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
2121

2222
ipython
2323

.jenkins/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ python -m spacy download de
4141

4242
# PyTorch Theme
4343
rm -rf src
44-
pip install -e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
44+
pip install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
4545
pip install sphinx-gallery==0.3.1 tqdm matplotlib ipython pillow==8.1.0
4646

4747
aws configure set default.s3.multipart_threshold 5120MB
Loading

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# continue to use the CPU.
3939

4040
device = 'cuda' if torch.cuda.is_available() else 'cpu'
41-
print('Using {} device'.format(device))
41+
print(f'Using {device} device')
4242

4343
##############################################
4444
# Define the Class

beginner_source/basics/quickstart_tutorial.py

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

9090
# Get cpu or gpu device for training.
9191
device = "cuda" if torch.cuda.is_available() else "cpu"
92-
print("Using {} device".format(device))
92+
print(f"Using {device} device")
9393

9494
# Define model
9595
class NeuralNetwork(nn.Module):

beginner_source/examples_autograd/polynomial_autograd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-------------------------------
55
66
A third order polynomial, trained to predict :math:`y=\sin(x)` from :math:`-\pi`
7-
to :math:`pi` by minimizing squared Euclidean distance.
7+
to :math:`\pi` by minimizing squared Euclidean distance.
88
99
This implementation computes the forward pass using operations on PyTorch
1010
Tensors, and uses PyTorch autograd to compute gradients.

beginner_source/examples_autograd/polynomial_custom_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
----------------------------------------
55
66
A third order polynomial, trained to predict :math:`y=\sin(x)` from :math:`-\pi`
7-
to :math:`pi` by minimizing squared Euclidean distance. Instead of writing the
7+
to :math:`\pi` by minimizing squared Euclidean distance. Instead of writing the
88
polynomial as :math:`y=a+bx+cx^2+dx^3`, we write the polynomial as
99
:math:`y=a+b P_3(c+dx)` where :math:`P_3(x)=\frac{1}{2}\left(5x^3-3x\right)` is
1010
the `Legendre polynomial`_ of degree three.

index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Welcome to PyTorch Tutorials
169169
:header: Automatic Speech Recognition with Wav2Vec2 in torchaudio
170170
:card_description: Learn how to use torchaudio's pretrained models for building a speech recognition application.
171171
:image: _static/img/thumbnails/cropped/torchaudio-asr.png
172-
:link: intermediate_source/speech_recognition_pipeline_tutorial.html
172+
:link: intermediate/speech_recognition_pipeline_tutorial.html
173173
:tags: Audio
174174

175175
.. customcarditem::

0 commit comments

Comments
 (0)