Skip to content

Commit 10b8d7f

Browse files
authored
Merge branch 'pytorch:site' into site
2 parents e0a5410 + 0ef3af8 commit 10b8d7f

File tree

5,354 files changed

+1553357
-5457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,354 files changed

+1553357
-5457
lines changed

_data/ecosystem/ptdd/2021/posters.yaml

Lines changed: 719 additions & 0 deletions
Large diffs are not rendered by default.

_ecosystem/flower

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: ecosystem_detail
3+
title: Flower
4+
summary: Flower - A Friendly Federated Learning Framework
5+
link: https://flower.dev
6+
summary-home: Flower - A Friendly Federated Learning Framework
7+
featured-home: false
8+
github-id: adap/flower
9+
date-added: 01/05/22
10+
---

_ecosystem/torchgeo

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: ecosystem_detail
3+
title: torchgeo
4+
summary: Datasets, transforms, and models for geospatial data
5+
link: https://github.com/microsoft/torchgeo
6+
summary-home: Datasets, transforms, and models for geospatial data
7+
featured-home: false
8+
github-id: microsoft/torchgeo
9+
date-added: 01/05/22
10+
---

_events/pytorch_developer_day.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ date: December 1, 2021
55
header-image: assets/images/pytorch_developer_day_2021.png
66
---
77

8-
The PyTorch Developer Day is a virtual event that brings together leading researchers and developers from the Machine Learning (ML) community to join a multiple set of talks covering new software releases, ways PyTorch is being used in academia and industry, and current trends in ML development. There will also be ample opportunity for networking with your peers and colleagues.
8+
The PyTorch Developer Day is a virtual event that brings together leading researchers and developers from the Machine Learning (ML) community to join a multiple set of talks covering new software releases, ways PyTorch is being used in academia and industry, and current trends in ML development. Find all the talks below:
9+
10+
- [Keynotes](https://www.youtube.com/c/PyTorch/playlists?view=50&sort=dd&shelf_id=4): Learn about the innovations, the new features, updates, and release of PyTorch, and how industries are using it for production and deployment.
11+
12+
- [Fireside Chat](https://youtu.be/JWdDl9Tvw6g): An informal and intimate conversation with two pioneers in the field of AI (and PyTorch) sharing their thoughts and vision for the future, commentary on top-of-mind trends they are seeing.
913

10-
*Call for Content Now Open!*
11-
12-
We want to hear from you, our community. Submit your poster abstracts today. Please submit the **title** and **brief summary** of your project, tools, and libraries that could benefit PyTorch researchers in academia and industry, application developers, and ML engineers for consideration. The focus must be on academic papers, machine learning research, or open-source projects related to PyTorch development, Responsible AI or Mobile. Please no sales pitches. **Deadline for submission is September 24, 2021**.
13-
14-
Submit your Poster abstract [HERE](http://pytorchdeveloperday.fbreg.com) You can submit your poster abstract in your registration form.
14+
- [Community Talks](https://www.youtube.com/watch?v=7yQ4FgtYvj8): PyTorch has grown thanks to our community. Hear from our members on the work being done with PyTorch.

_get_started/installation/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyTorch is supported on Linux distributions that use [glibc](https://www.gnu.org
2525
### Python
2626
{: #linux-python}
2727

28-
Python 3.6 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
28+
Python 3.7 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
2929

3030
> Tip: By default, you will have to use the command `python3` to run Python. If you want to use just the command `python`, instead of `python3`, you can symlink `python` to the `python3` binary.
3131

_get_started/installation/mac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ PyTorch is supported on macOS 10.10 (Yosemite) or above.
1515
### Python
1616
{: #mac-python}
1717

18-
It is recommended that you use Python 3.5 or greater, which can be installed either through the Anaconda package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or the [Python website](https://www.python.org/downloads/mac-osx/).
18+
It is recommended that you use Python 3.7 or greater, which can be installed either through the Anaconda package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or the [Python website](https://www.python.org/downloads/mac-osx/).
1919

2020
### Package Manager
2121
{: #mac-package-manager}

_get_started/installation/windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PyTorch is supported on the following Windows distributions:
1818
### Python
1919
{: #windows-python}
2020

21-
Currently, PyTorch on Windows only supports Python 3.x; Python 2.x is not supported.
21+
Currently, PyTorch on Windows only supports Python 3.7-3.9; Python 2.x is not supported.
2222

2323
As it is not installed by default on Windows, there are multiple ways to install Python:
2424

_includes/main_menu.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<span class="dropdown-title">Ecosystem Day - 2021</span>
1919
<p>See the posters presented at ecosystem day 2021</p>
2020
</a>
21+
<a class="nav-dropdown-item" href="{{ site.baseurl}}/ecosystem/ptdd/2021">
22+
<span class="dropdown-title">Developer Day - 2021</span>
23+
<p>See the posters presented at developer day 2021</p>
24+
</a>
2125
</div>
2226
</div>
2327
</li>

_includes/mobile_menu.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
<li>
3838
<a href="{{ site.baseurl }}/ecosystem/pted/2021">Ecosystem Day 2021</a>
3939
</li>
40+
<li>
41+
<a href="{{ site.baseurl }}/ecosystem/ptdd/2021">Developer Day 2021</a>
42+
</li>
4043
</ul>
4144

4245
<li class="{% if current[1] == 'mobile' %}active{% endif %}">

_includes/quick-start-module.js

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var supportedOperatingSystems = new Map([
88
var supportedComputePlatforms = new Map([
99
['cuda10.2', new Set(['linux', 'windows'])],
1010
['cuda11.x', new Set(['linux', 'windows'])],
11-
['rocm4.2', new Set(['linux'])],
11+
['rocm4.x', new Set(['linux'])],
1212
['accnone', new Set(['linux', 'macos', 'windows'])],
1313
]);
1414

@@ -115,21 +115,35 @@ function disableUnsupportedPlatforms(os) {
115115
});
116116
}
117117

118-
// Change CUDA version depending on build type
118+
// Change compute versiosn depending on build type
119119
function changeCUDAVersion(ptbuild) {
120-
var element = document.getElementById("cuda11.x");
121-
if (element == null) {
120+
var cuda_element = document.getElementById("cuda11.x");
121+
var rocm_element = document.getElementById("rocm4.x");
122+
if (cuda_element == null) {
122123
console.log("Failed to find cuda11.x element");
123124
return;
124125
}
125-
if (element.childElementCount != 1) {
126+
if (cuda_element.childElementCount != 1) {
126127
console.log("Unexpected number of children for cuda11.x element");
127128
return;
128129
}
129-
if (ptbuild == "preview" || ptbuild == "stable") {
130-
element.children[0].textContent = "CUDA 11.3";
130+
if (rocm_element == null) {
131+
console.log("Failed to find rocm4.x element");
132+
return;
133+
}
134+
if (rocm_element.childElementCount != 1) {
135+
console.log("Unexpected number of children for rocm4.x element");
136+
return;
137+
}
138+
if (ptbuild == "preview") {
139+
rocm_element.children[0].textContent = "ROCM 4.3 (beta)";
140+
cuda_element.children[0].textContent = "CUDA 11.3";
141+
} else if (ptbuild == "stable") {
142+
rocm_element.children[0].textContent = "ROCM 4.2 (beta)";
143+
cuda_element.children[0].textContent = "CUDA 11.3";
131144
} else {
132-
element.children[0].textContent = "CUDA 11.1";
145+
rocm_element.children[0].textContent = "ROCM 4.2 (beta)";
146+
cuda_element.children[0].textContent = "CUDA 11.1";
133147
}
134148
}
135149

_includes/quick_start_local.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<div class="option-text">PyTorch Build</div>
3636
</div>
3737
<div class="col-md-4 option block version selected" id="stable">
38-
<div class="option-text">Stable (1.10.1)</div>
38+
<div class="option-text">Stable (1.10.2)</div>
3939
</div>
4040
<div class="col-md-4 option block version" id="preview">
4141
<div class="option-text">Preview (Nightly)</div>
@@ -96,7 +96,7 @@
9696
<div class="col-md-3 option block version" id="cuda11.x">
9797
<div class="option-text">CUDA 11.3</div>
9898
</div>
99-
<div class="col-md-3 option block version" id="rocm4.2">
99+
<div class="col-md-3 option block version" id="rocm4.x">
100100
<div class="option-text">ROCm 4.2 (beta)</div>
101101
</div>
102102
<div class="col-md-3 option block version" id="accnone">

_mobile/ios.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ To get started with PyTorch on iOS, we recommend exploring the following [HelloW
1616

1717
HelloWorld is a simple image classification application that demonstrates how to use PyTorch C++ libraries on iOS. The code is written in Swift and uses Objective-C as a bridge.
1818

19+
### Requirements
20+
21+
- XCode 11.0 or above
22+
- iOS 12.0 or above
23+
1924
### Model Preparation
2025

2126
Let's start with model preparation. If you are familiar with PyTorch, you probably should already know how to train and save your model. In case you don't, we are going to use a pre-trained image classification model - [MobileNet v2](https://pytorch.org/hub/pytorch_vision_mobilenet_v2/), which is already packaged in [TorchVision](https://pytorch.org/docs/stable/torchvision/index.html). To install it, run the command below.
@@ -32,7 +37,7 @@ Once we have TorchVision installed successfully, let's navigate to the HelloWorl
3237
python trace_model.py
3338
```
3439

35-
If everything works well, we should have our model - `model.pt` generated in the `HelloWorld` folder. Now copy the model file to our application folder `HelloWorld/model`.
40+
If everything works well, `model.pt` should be generated and saved in the `HelloWorld/HelloWorld/model` folder.
3641

3742
> To find out more details about TorchScript, please visit [tutorials on pytorch.org](https://pytorch.org/tutorials/advanced/cpp_export.html)
3843
@@ -65,7 +70,7 @@ guard var pixelBuffer = resizedImage.normalized() else {
6570
}
6671
```
6772

68-
We first load the image from our bundle and resize it to 224x224. Then we call this `normalized()` category method to normalized the pixel buffer. Let's take a closer look at the code below.
73+
We first load the image from our bundle and resize it to 224x224. Then we call this `normalized()` category method to normalize the pixel buffer. Let's take a closer look at the code below.
6974

7075
```swift
7176
var normalizedBuffer: [Float32] = [Float32](repeating: 0, count: w * h * 3)
@@ -82,7 +87,7 @@ The code might look weird at first glance, but it’ll make sense once we unders
8287

8388
#### TorchScript Module
8489

85-
Now that we have preprocessed our input data and we have a pre-trained TorchScript model, the next step is to use them to run predication. To do that, we'll first load our model into the application.
90+
Now that we have preprocessed our input data and we have a pre-trained TorchScript model, the next step is to use them to run prediction. To do that, we'll first load our model into the application.
8691

8792
```swift
8893
private lazy var module: TorchModule = {

0 commit comments

Comments
 (0)