Skip to content

Commit 1fd56f7

Browse files
Merge branch 'site' into test-for-sofia
2 parents a888c1b + ea19caa commit 1fd56f7

File tree

12,162 files changed

+3943273
-99529
lines changed

Some content is hidden

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

12,162 files changed

+3943273
-99529
lines changed

.github/scale-config.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/check-quickstartmodule.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,14 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
rel_type: [ "latest_stable", "latest_lts" ]
58-
acc_type: [ "cuda11.x", "cuda10.2", "accnone" ]
59-
py_vers: [ "3.7", "3.8", "3.9" ]
60-
os: ["ubuntu-18.04", "macos-latest", "windows.4xlarge"]
61-
# We don't actively build for CUDA 10.2 on windows so we should
62-
# skip it in our test matrix for pip install
57+
rel_type: ["latest_stable", "latest_lts"]
58+
acc_type: ["cuda.x", "cuda.y", "accnone"]
59+
py_vers: ["3.7", "3.8", "3.9", "3.10"]
60+
os: ["ubuntu-18.04", "macos-latest", "windows.2022.small"]
6361
exclude:
64-
- os: "windows.4xlarge"
65-
acc_type: "cuda10.2"
62+
- rel_type: "latest_lts"
63+
py_vers: "3.10"
64+
6665
env:
6766
TEST_ACC: ${{ matrix.acc_type }}
6867
TEST_VER: ${{ matrix.rel_type }}
@@ -90,9 +89,9 @@ jobs:
9089
strategy:
9190
fail-fast: false
9291
matrix:
93-
rel_type: [ "latest_stable" ]
94-
acc_type: [ "cuda11.x", "cuda10.2", "accnone" ]
95-
py_vers: [ "3.7", "3.8", "3.9" ]
92+
rel_type: ["latest_stable"]
93+
acc_type: ["cuda.x", "cuda.y", "accnone"]
94+
py_vers: ["3.7", "3.8", "3.9", "3.10"]
9695
os: ["ubuntu-18.04", "macos-latest"]
9796
env:
9897
TEST_ACC: ${{ matrix.acc_type }}

404.html

Lines changed: 76 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,79 @@
55
layout: general
66
---
77

8-
<!DOCTYPE html>
9-
<html>
10-
<body>
11-
<div style="text-align: center;">
12-
<img src="{{ site.baseurl }}/assets/images/404_sign.png" />
13-
14-
<h1>Oops!</h1>
15-
16-
<h4>You've reached a dead end.</h4>
17-
18-
<h4>
19-
If you feel like something should be here, you can <a href="https://github.com/pytorch/pytorch.github.io/issues">open an issue</a> on GitHub.
20-
</h4>
21-
22-
<h4>
23-
Click <a href="/">here</a> to go back to the main page.
24-
</h4>
25-
</div>
26-
</body>
27-
</html>
8+
<script type="text/javascript" charset="utf-8">
9+
const FALLBACK_URL = '';
10+
const REDIRECT_STYLE = {
11+
// Redirect completely, appending the path to the newly specified location.
12+
// This is useful for project renames or moving to a different org.
13+
FULL: 0,
14+
// Redirect to the specific location, losing path information
15+
// This is useful when you just want to capture the audience to known working page.
16+
SIMPLE: 1,
17+
// Redirect to the project's 404 page, injecting the original URL.
18+
FOUROHFOUR_DEFAULT: 2,
19+
// Redirect to the specified path, replacing ${from} with the original URL.
20+
FOUROHFOUR_CUSTOM: 3,
21+
};
22+
23+
const PROJECTS = {
24+
live: {
25+
location: 'https://playtorch.dev/',
26+
style: REDIRECT_STYLE.FULL,
27+
},
28+
};
29+
30+
// eg "https://facebook.github.io/flux/docs/overview/"
31+
const ORIGINAL_URL = window.location.href;
32+
// eg [ "", "flux", "docs", "overview", "" ]
33+
const PATH_PARTS = window.location.pathname.split('/');
34+
// eg "flux"
35+
const PROJECT = PATH_PARTS[1];
36+
// eg "docs/overview/"
37+
const SUBPATH = PATH_PARTS.slice(2).join('/');
38+
39+
40+
// Perform the redirect only for explicitly defined projects.
41+
// Otherwise show the 404 page below
42+
if (PROJECTS.hasOwnProperty(PROJECT)) {
43+
let newUrl = '';
44+
let project = PROJECTS[PROJECT];
45+
switch (project.style) {
46+
case REDIRECT_STYLE.FULL:
47+
newUrl = project.location + SUBPATH;
48+
break;
49+
case REDIRECT_STYLE.SIMPLE:
50+
newUrl = project.location;
51+
break;
52+
case REDIRECT_STYLE.FOUROHFOUR_DEFAULT:
53+
newUrl = project.location + '404.html?from=' + ORIGINAL_URL;
54+
break;
55+
case REDIRECT_STYLE.FOUROHFOUR_CUSTOM:
56+
newUrl = project.location.replace('${from}', ORIGINAL_URL);
57+
break;
58+
default:
59+
newUrl = FALLBACK_URL;
60+
}
61+
62+
if (newUrl !== '') {
63+
window.location.href = newUrl;
64+
}
65+
}
66+
67+
</script>
68+
69+
<div style="text-align: center;">
70+
<img src="{{ site.baseurl }}/assets/images/404_sign.png" />
71+
72+
<h1>Oops!</h1>
73+
74+
<h4>You've reached a dead end.</h4>
75+
76+
<h4>
77+
If you feel like something should be here, you can <a href="https://github.com/pytorch/pytorch.github.io/issues">open an issue</a> on GitHub.
78+
</h4>
79+
80+
<h4>
81+
Click <a href="/">here</a> to go back to the main page.
82+
</h4>
83+
</div>

Gemfile.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ GEM
218218
jekyll-seo-tag (~> 2.1)
219219
minitest (5.14.4)
220220
multipart-post (2.1.1)
221-
nokogiri (1.13.6)
221+
nokogiri (1.13.9)
222222
mini_portile2 (~> 2.8.0)
223223
racc (~> 1.4)
224224
octokit (4.20.0)
@@ -253,7 +253,7 @@ GEM
253253
thread_safe (0.3.6)
254254
typhoeus (1.4.0)
255255
ethon (>= 0.9.0)
256-
tzinfo (1.2.9)
256+
tzinfo (1.2.10)
257257
thread_safe (~> 0.1)
258258
unf (0.1.4)
259259
unf_ext
@@ -273,4 +273,5 @@ DEPENDENCIES
273273
RUBY VERSION
274274
ruby 2.6.10p210
275275

276-
276+
BUNDLED WITH
277+
1.17.2

_board_info/advanced-micro-devices.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: AMD
3+
summary: ''
4+
link: https://amd.com
5+
image: /assets/images/announcement-logo-amd.jpg
6+
class: pytorch-resource
7+
order: 1
8+
featured-home: true
9+
---

_board_info/amazon-web-services.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Amazon
3+
summary: ''
4+
link: https://aws.amazon.com
5+
image: /assets/images/announcement-logo-aws.jpg
6+
class: pytorch-resource
7+
order: 2
8+
featured-home: true
9+
---

_board_info/google-cloud.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Google Cloud
3+
summary: ''
4+
link: https://cloud.google.com/gcp
5+
image: /assets/images/announcement-logo-google.png
6+
class: pytorch-resource
7+
order: 3
8+
featured-home: true
9+
---

_board_info/meta.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Meta
3+
summary: ''
4+
link: https://meta.com
5+
image: /assets/images/announcement-logo-meta.jpg
6+
class: pytorch-resource
7+
order: 4
8+
featured-home: true
9+
---

_board_info/microsoft-corporation.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Microsoft
3+
summary: ''
4+
link: https://azure.microsoft.com
5+
image: /assets/images/announcement-logo-microsoft.jpg
6+
class: pytorch-resource
7+
order: 5
8+
featured-home: true
9+
---

_board_info/nvidia-corporation.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Nvidia
3+
summary: ''
4+
link: https://www.nvidia.com/en-us/ai-data-science/
5+
image: /assets/images/announcement-logo-nvidia.jpg
6+
class: pytorch-resource
7+
order: 5
8+
featured-home: true
9+
---

0 commit comments

Comments
 (0)