Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gaurav-work/pytorch.github.io
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: site
Choose a base ref
...
head repository: pytorch/pytorch.github.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: site
Choose a head ref

Commits on Apr 30, 2020

  1. Bump jquery from 3.4.0 to 3.5.0

    Bumps [jquery](https://github.com/jquery/jquery) from 3.4.0 to 3.5.0.
    - [Release notes](https://github.com/jquery/jquery/releases)
    - [Commits](jquery/jquery@3.4.0...3.5.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 30, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4c62c04 View commit details

Commits on Jun 4, 2020

  1. Minor typo

    cgrigis authored Jun 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a9964e2 View commit details

Commits on Jun 6, 2020

  1. Removed wrong cuda note

    lukasfolle authored Jun 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    23358fd View commit details

Commits on Jun 17, 2020

  1. Fix a typo in tutorial title

    Exporting (NOT Exploring) a Model from PyTorch to ONNX and Running it using ONNX Runtime
    trsvchn authored Jun 17, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fe99e94 View commit details

Commits on Jun 23, 2020

  1. update

    Pat Mellon committed Jun 23, 2020
    Copy the full SHA
    c8ac645 View commit details
  2. update

    Pat Mellon committed Jun 23, 2020
    Copy the full SHA
    0d34b63 View commit details

Commits on Jun 24, 2020

  1. Update docs feature classification

    Jessica Lin committed Jun 24, 2020
    Copy the full SHA
    bd30dfa View commit details

Commits on Jun 25, 2020

  1. Update PDF file

    Pat Mellon committed Jun 25, 2020
    Copy the full SHA
    52b2b32 View commit details
  2. Increase padding above jumbotron heading

    Pat Mellon committed Jun 25, 2020
    Copy the full SHA
    6e00e95 View commit details

Commits on Jun 30, 2020

  1. Replace form with Google form

    Brandon Green committed Jun 30, 2020
    Copy the full SHA
    f2082d8 View commit details
  2. Copy the full SHA
    042defe View commit details
  3. Copy the full SHA
    0ceacc6 View commit details
  4. Copy the full SHA
    a8ffa1b View commit details
  5. [Mobile] Landing page update for v1.6.0

    Updated text for PyTorch Mobile landing page and the workflow asset image.
    Gaurav Aggarwal committed Jun 30, 2020
    Copy the full SHA
    d3a4f7e View commit details
  6. Copy the full SHA
    b783b85 View commit details
  7. Copy the full SHA
    0b11f1c View commit details
  8. Copy the full SHA
    9ba40bd View commit details
  9. Copy the full SHA
    e5d0787 View commit details

Commits on Jul 1, 2020

  1. Copy the full SHA
    8e03b53 View commit details
  2. Copy the full SHA
    acfd4ca View commit details
  3. Copy the full SHA
    77dcb60 View commit details
  4. Copy the full SHA
    df923c8 View commit details
  5. Copy the full SHA
    e7d6e65 View commit details
  6. Copy the full SHA
    dc9eab8 View commit details
  7. Copy the full SHA
    ca26809 View commit details
  8. Update thank you page language

    Pat Mellon committed Jul 1, 2020
    Copy the full SHA
    1abdc1e View commit details
  9. Copy the full SHA
    aa93e7b View commit details
  10. PyTorch Google Form

    This commit adds Google form from PyTorch
    Brandon Green committed Jul 1, 2020
    Copy the full SHA
    6aa5a7a View commit details
  11. Copy the full SHA
    1fde02a View commit details
  12. Copy the full SHA
    ba353c3 View commit details
  13. Copy the full SHA
    c39ddf4 View commit details

Commits on Jul 2, 2020

  1. Copy the full SHA
    9da8d8d View commit details
  2. Copy the full SHA
    962948a View commit details
  3. Copy the full SHA
    8283ad0 View commit details
  4. Copy the full SHA
    9ffbb41 View commit details
  5. Copy the full SHA
    157d89b View commit details
  6. Copy the full SHA
    16b7537 View commit details
  7. Copy the full SHA
    0e08889 View commit details
  8. Copy the full SHA
    aee50d5 View commit details
  9. Copy the full SHA
    5d8ad45 View commit details
  10. Merge pull request pytorch#411 from shiftlab/update-deep-learning-for…

    …m-language
    
    Update Deep Learning With PyTorch landing page
    brucejlin1 authored Jul 2, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3eb2b66 View commit details
  11. Copy the full SHA
    97d1d33 View commit details
  12. Copy the full SHA
    c959c91 View commit details
  13. Copy the full SHA
    70c197c View commit details
  14. Copy the full SHA
    23fa55e View commit details
  15. Copy the full SHA
    97f2632 View commit details
  16. Copy the full SHA
    a510bf3 View commit details
  17. Copy the full SHA
    d3eca25 View commit details
  18. Copy the full SHA
    dc10458 View commit details
  19. Copy the full SHA
    70be137 View commit details
Showing 7,874 changed files with 29,499 additions and 4,003,291 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
49 changes: 0 additions & 49 deletions .circleci/config.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on:
push:
branches:
- site
workflow_dispatch:

jobs:
tests:
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
secrets: inherit
with:
runner: linux.12xlarge
repository: pytorch/pytorch.github.io
docker-image: cimg/ruby:2.7-node
secrets-env: PYTORCHBOT_TOKEN
script: |
git config --global --add safe.directory /__w/pytorch.github.io/pytorch.github.io
set -euxo pipefail
## Bundle Install
cd
mkdir .bundle
bundle config path '~/vendor/bundle'
git clone https://github.com/pytorch/pytorch.github.io.git
cd pytorch.github.io
bundle install
## Yarn Install
yarn install --cache-folder ~/.cache/yarn
## Notedown Install
sudo apt update && sudo apt install python3-pip && sudo -H pip3 install pyrsistent==0.16 notedown pyyaml -Iv nbformat==5.7
## Configure Bot
git config --global user.email "facebook-circleci-bot@users.noreply.github.com"
git config --global user.name "Website Deployment Script"
## Build Jekyll site and push to master
./scripts/deploy-site.sh build
118 changes: 118 additions & 0 deletions .github/workflows/update-quick-start-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Update quick start module
on:
schedule:
# At 18:30 pm UTC (1:30 pm EST)
- cron: "30 18 * * *"
pull_request:
paths:
- .github/workflows/update-quick-start-module.yml
- scripts/gen_quick_start_module.py
- _includes/quick-start-module.js
- _includes/quick_start_local.html
push:
branches:
site
paths:
- .github/workflows/update-quick-start-module.yml
- scripts/gen_quick_start_module.py
- _includes/quick-start-module.js
- _includes/quick_start_local.html
workflow_dispatch:

jobs:
linux-nightly-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: all
os: linux
channel: "nightly"
getting-started: true
windows-nightly-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: all
os: windows
channel: "nightly"
getting-started: true
macos-arm64-nightly-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: all
os: macos-arm64
channel: "nightly"
getting-started: true
linux-release-matrix:
needs: [linux-nightly-matrix]
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: all
os: linux
channel: "release"
getting-started: true
windows-release-matrix:
needs: [windows-nightly-matrix]
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: all
os: windows
channel: "release"
getting-started: true
macos-arm64-release-matrix:
needs: [macos-arm64-nightly-matrix]
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: all
os: macos-arm64
channel: "release"
getting-started: true

update-quick-start:
needs: [linux-nightly-matrix, windows-nightly-matrix, macos-arm64-nightly-matrix,
linux-release-matrix, windows-release-matrix, macos-arm64-release-matrix]
runs-on: "ubuntu-latest"
environment: pytorchbot-env
steps:
- name: Checkout pytorch.github.io
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Create json file
shell: bash
env:
LINUX_NIGHTLY_MATRIX: ${{ needs.linux-nightly-matrix.outputs.matrix }}
WINDOWS_NIGHTLY_MATRIX: ${{ needs.windows-nightly-matrix.outputs.matrix }}
MACOS_NIGHTLY_MATRIX: ${{ needs.macos-arm64-nightly-matrix.outputs.matrix }}
LINUX_RELEASE_MATRIX: ${{ needs.linux-release-matrix.outputs.matrix }}
WINDOWS_RELEASE_MATRIX: ${{ needs.windows-release-matrix.outputs.matrix }}
MACOS_RELEASE_MATRIX: ${{ needs.macos-arm64-release-matrix.outputs.matrix }}
run: |
set -ex
printf '%s\n' "$LINUX_NIGHTLY_MATRIX" > linux_nightly_matrix.json
printf '%s\n' "$WINDOWS_NIGHTLY_MATRIX" > windows_nightly_matrix.json
printf '%s\n' "$MACOS_NIGHTLY_MATRIX" > macos_nightly_matrix.json
printf '%s\n' "$LINUX_RELEASE_MATRIX" > linux_release_matrix.json
printf '%s\n' "$WINDOWS_RELEASE_MATRIX" > windows_release_matrix.json
printf '%s\n' "$MACOS_RELEASE_MATRIX" > macos_release_matrix.json
python3 ./scripts/gen_quick_start_module.py --autogenerate > assets/quick-start-module.js
rm *_matrix.json
- name: Create Issue if failed
uses: dacbd/create-issue-action@main
if: ${{ failure() }} # only run when this job is failed.
with:
title: Updating quick start module failed
token: ${{secrets.PYTORCHBOT_TOKEN}}
assignees: ${{github.actor}}
labels: bug
body: Updating quick start module failed, please fix update quick start module
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PYTORCHBOT_TOKEN }}
commit-message: Modify published_versions.json, releases.json and quick-start-module.js
title: '[Getting Started Page] Modify published_versions.json, releases.json and quick-start-module.js'
body: >
This PR is auto-generated. It updates Getting Started page
labels: automated pr
31 changes: 31 additions & 0 deletions .github/workflows/validate-quick-start-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate quick start module
on:
pull_request:
branches:
site
paths:
- published_versions.json
- assets/quick-start-module.js
- .github/workflows/validate-quick-start-module.yml
push:
branches:
site
paths:
- published_versions.json
- assets/quick-start-module.js
- .github/workflows/validate-quick-start-module.yml
workflow_dispatch:

jobs:
validate-nightly-binaries:
uses: pytorch/test-infra/.github/workflows/validate-binaries.yml@main
with:
os: all
channel: "nightly"
validate-release-binaries:
if: always()
uses: pytorch/test-infra/.github/workflows/validate-binaries.yml@main
needs: validate-nightly-binaries
with:
os: all
channel: "release"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
yarn-error.log
vendor
/vendor
# These are NOT autogenerated. Check in files as necessary.
!docs/stable/_static/js/vendor/
!docs/master/_static/js/vendor/
@@ -14,3 +14,5 @@ _site
.jekyll-metadata

.vscode/

.netlify/
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.1
2.7.8
96 changes: 76 additions & 20 deletions 404.html
Original file line number Diff line number Diff line change
@@ -5,23 +5,79 @@
layout: general
---

<!DOCTYPE html>
<html>
<body>
<div style="text-align: center;">
<img src="{{ site.baseurl }}/assets/images/404_sign.png" />

<h1>Oops!</h1>

<h4>You've reached a dead end.</h4>

<h4>
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.
</h4>

<h4>
Click <a href="/">here</a> to go back to the main page.
</h4>
</div>
</body>
</html>
<script type="text/javascript" charset="utf-8">
const FALLBACK_URL = '';
const REDIRECT_STYLE = {
// Redirect completely, appending the path to the newly specified location.
// This is useful for project renames or moving to a different org.
FULL: 0,
// Redirect to the specific location, losing path information
// This is useful when you just want to capture the audience to known working page.
SIMPLE: 1,
// Redirect to the project's 404 page, injecting the original URL.
FOUROHFOUR_DEFAULT: 2,
// Redirect to the specified path, replacing ${from} with the original URL.
FOUROHFOUR_CUSTOM: 3,
};

const PROJECTS = {
live: {
location: 'https://playtorch.dev/',
style: REDIRECT_STYLE.FULL,
},
};

// eg "https://facebook.github.io/flux/docs/overview/"
const ORIGINAL_URL = window.location.href;
// eg [ "", "flux", "docs", "overview", "" ]
const PATH_PARTS = window.location.pathname.split('/');
// eg "flux"
const PROJECT = PATH_PARTS[1];
// eg "docs/overview/"
const SUBPATH = PATH_PARTS.slice(2).join('/');


// Perform the redirect only for explicitly defined projects.
// Otherwise show the 404 page below
if (PROJECTS.hasOwnProperty(PROJECT)) {
let newUrl = '';
let project = PROJECTS[PROJECT];
switch (project.style) {
case REDIRECT_STYLE.FULL:
newUrl = project.location + SUBPATH;
break;
case REDIRECT_STYLE.SIMPLE:
newUrl = project.location;
break;
case REDIRECT_STYLE.FOUROHFOUR_DEFAULT:
newUrl = project.location + '404.html?from=' + ORIGINAL_URL;
break;
case REDIRECT_STYLE.FOUROHFOUR_CUSTOM:
newUrl = project.location.replace('${from}', ORIGINAL_URL);
break;
default:
newUrl = FALLBACK_URL;
}

if (newUrl !== '') {
window.location.href = newUrl;
}
}

</script>

<div style="text-align: center;">
<img src="{{ site.baseurl }}/assets/images/404_sign.png" />

<h1>Oops!</h1>

<h4>You've reached a dead end.</h4>

<h4>
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.
</h4>

<h4>
Click <a href="/">here</a> to go back to the main page.
</h4>
</div>
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytorch.org
docs.pytorch.org
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
source "https://rubygems.org"
ruby "2.5.1"
ruby "2.7.8"

group :jekyll_plugins do
gem "github-pages"
gem "jekyll-paginate-v2"
gem 'jekyll-autoprefixer'
gem 'jekyll-feed'
end
Loading