Skip to content

Commit 8f5fdb4

Browse files
authored
Merge branch 'main' into fix/ddp-multigpu-doc-update
2 parents cc9ac6e + 1655d0a commit 8f5fdb4

4 files changed

Lines changed: 5 additions & 31 deletions

File tree

beginner_source/examples_tensor/polynomial_tensor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
"""
2020

2121
import torch
22-
import math
23-
2422

2523
dtype = torch.float
2624
device = torch.device("cpu")
2725
# device = torch.device("cuda:0") # Uncomment this to run on GPU
2826

2927
# Create random input and output data
30-
x = torch.linspace(-math.pi, math.pi, 2000, device=device, dtype=dtype)
28+
x = torch.linspace(-torch.pi, torch.pi, 2000, device=device, dtype=dtype)
3129
y = torch.sin(x)
3230

3331
# Randomly initialize weights

beginner_source/introyt/captumyt.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,7 @@
106106
- Matplotlib version 3.3.4, since Captum currently uses a Matplotlib
107107
function whose arguments have been renamed in later versions
108108
109-
To install Captum in an Anaconda or pip virtual environment, use the
110-
appropriate command for your environment below:
111-
112-
With ``conda``:
113-
114-
.. code-block:: sh
115-
116-
conda install pytorch torchvision captum flask-compress matplotlib=3.3.4 -c pytorch
117-
118-
With ``pip``:
109+
To install Captum in a virtual environment, use:
119110
120111
.. code-block:: sh
121112

beginner_source/introyt/tensorboardyt_tutorial.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
To run this tutorial, you’ll need to install PyTorch, TorchVision,
2525
Matplotlib, and TensorBoard.
2626
27-
With ``conda``:
28-
29-
.. code-block:: sh
30-
31-
conda install pytorch torchvision -c pytorch
32-
conda install matplotlib tensorboard
33-
3427
With ``pip``:
3528
3629
.. code-block:: sh

recipes_source/recipes/tensorboard_with_pytorch.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@
99
1010
Installation
1111
----------------------
12-
PyTorch should be installed to log models and metrics into TensorBoard log
13-
directory. The following command will install PyTorch 1.4+ via
14-
Anaconda (recommended):
12+
PyTorch should be installed to log models and metrics into the TensorBoard log
13+
directory. Install PyTorch with:
1514
1615
.. code-block:: sh
1716
18-
$ conda install pytorch torchvision -c pytorch
19-
20-
21-
or pip
22-
23-
.. code-block:: sh
24-
25-
$ pip install torch torchvision
17+
pip install torch torchvision
2618
2719
"""
2820

0 commit comments

Comments
 (0)