Skip to content

Commit ade91f7

Browse files
committed
fix pi to \pi
1 parent 4dba7db commit ade91f7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

beginner_source/examples_nn/polynomial_nn.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 uses the nn package from PyTorch to build the network.
1010
PyTorch autograd makes it easy to define computational graphs and take gradients,

beginner_source/examples_nn/polynomial_optim.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 uses the nn package from PyTorch to build the network.
1010

beginner_source/examples_tensor/polynomial_numpy.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 uses numpy to manually compute the forward pass, loss, and
1010
backward pass.

beginner_source/examples_tensor/polynomial_tensor.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 uses PyTorch tensors to manually compute the forward pass,
1010
loss, and backward pass.

0 commit comments

Comments
 (0)