diff --git a/_includes/quick_start_local.html b/_includes/quick_start_local.html index 3d7ba6738ba8..451767f5c0e3 100644 --- a/_includes/quick_start_local.html +++ b/_includes/quick_start_local.html @@ -77,14 +77,8 @@
Python 2.7
-
-
Python 3.5
-
-
-
Python 3.6
-
-
-
Python 3.7
+
+
Python 3
C++ / Java
diff --git a/assets/quick-start-module.js b/assets/quick-start-module.js index d454fc4bf4ff..9452062c17d9 100644 --- a/assets/quick-start-module.js +++ b/assets/quick-start-module.js @@ -9,7 +9,7 @@ var opts = { cuda: 'cuda10.1', os: getAnchorSelectedOS() || getDefaultSelectedOS(), pm: 'conda', - language: 'python3.6', + language: 'python3', ptbuild: 'stable', }; @@ -90,8 +90,8 @@ function selectedOption(option, selection, category) { var elements = document.getElementsByClassName("language")[0].children; if (selection.id !== "libtorch" && elements["cplusplus"].classList.contains("selected")) { $(elements["cplusplus"]).removeClass("selected"); - $(elements["python3.7"]).addClass("selected"); - opts["language"] = "python3.7"; + $(elements["python3"]).addClass("selected"); + opts["language"] = "python3"; } else if (selection.id == "libtorch") { for (var i = 0; i < elements.length; i++) { if (elements[i].id === "cplusplus") { @@ -184,31 +184,13 @@ function commandMessage(key) { "stable,conda,linux,cudanone,python2.7": "conda install pytorch torchvision cpuonly -c pytorch", - "stable,conda,linux,cuda9.2,python3.5": + "stable,conda,linux,cuda9.2,python3": "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch", - "stable,conda,linux,cuda10.1,python3.5": + "stable,conda,linux,cuda10.1,python3": "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch", - "stable,conda,linux,cudanone,python3.5": - "conda install pytorch torchvision cpuonly -c pytorch", - - "stable,conda,linux,cuda9.2,python3.6": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch", - - "stable,conda,linux,cuda10.1,python3.6": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch", - - "stable,conda,linux,cudanone,python3.6": - "conda install pytorch torchvision cpuonly -c pytorch", - - "stable,conda,linux,cuda9.2,python3.7": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch", - - "stable,conda,linux,cuda10.1,python3.7": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch", - - "stable,conda,linux,cudanone,python3.7": + "stable,conda,linux,cudanone,python3": "conda install pytorch torchvision cpuonly -c pytorch", "stable,conda,macos,cuda9.2,python2.7": @@ -220,31 +202,13 @@ function commandMessage(key) { "stable,conda,macos,cudanone,python2.7": "conda install pytorch torchvision -c pytorch", - "stable,conda,macos,cuda9.2,python3.5": - "conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,conda,macos,cuda10.1,python3.5": - "conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,conda,macos,cudanone,python3.5": - "conda install pytorch torchvision -c pytorch", - - "stable,conda,macos,cuda9.2,python3.6": + "stable,conda,macos,cuda9.2,python3": "conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - "stable,conda,macos,cuda10.1,python3.6": + "stable,conda,macos,cuda10.1,python3": "conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - "stable,conda,macos,cudanone,python3.6": - "conda install pytorch torchvision -c pytorch", - - "stable,conda,macos,cuda9.2,python3.7": - "conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,conda,macos,cuda10.1,python3.7": - "conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,conda,macos,cudanone,python3.7": + "stable,conda,macos,cudanone,python3": "conda install pytorch torchvision -c pytorch", "stable,conda,windows,cuda9.2,python2.7": @@ -256,31 +220,13 @@ function commandMessage(key) { "stable,conda,windows,cudanone,python2.7": "# PyTorch does not support Python 2.7 on Windows. Please install with Python 3.", - "stable,conda,windows,cuda9.2,python3.5": + "stable,conda,windows,cuda9.2,python3": "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev ", - "stable,conda,windows,cuda10.1,python3.5": + "stable,conda,windows,cuda10.1,python3": "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch", - "stable,conda,windows,cudanone,python3.5": - "conda install pytorch torchvision cpuonly -c pytorch", - - "stable,conda,windows,cuda9.2,python3.6": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev", - - "stable,conda,windows,cuda10.1,python3.6": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch", - - "stable,conda,windows,cudanone,python3.6": - "conda install pytorch torchvision cpuonly -c pytorch", - - "stable,conda,windows,cuda9.2,python3.7": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev", - - "stable,conda,windows,cuda10.1,python3.7": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch", - - "stable,conda,windows,cudanone,python3.7": + "stable,conda,windows,cudanone,python3": "conda install pytorch torchvision cpuonly -c pytorch", "stable,pip,macos,cuda9.2,python2.7": @@ -291,29 +237,13 @@ function commandMessage(key) { "stable,pip,macos,cudanone,python2.7": "pip install torch torchvision", - "stable,pip,macos,cuda9.2,python3.5": + "stable,pip,macos,cuda9.2,python3": "pip3 install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - "stable,pip,macos,cuda10.1,python3.5": + "stable,pip,macos,cuda10.1,python3": "pip3 install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - "stable,pip,macos,cudanone,python3.5": "pip3 install torch torchvision", - - "stable,pip,macos,cuda9.2,python3.6": - "pip3 install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,pip,macos,cuda10.1,python3.6": - "pip3 install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,pip,macos,cudanone,python3.6": "pip3 install torch torchvision", - - "stable,pip,macos,cuda9.2,python3.7": - "pip3 install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,pip,macos,cuda10.1,python3.7": - "pip3 install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed", - - "stable,pip,macos,cudanone,python3.7": "pip3 install torch torchvision", + "stable,pip,macos,cudanone,python3": "pip3 install torch torchvision", "stable,pip,linux,cudanone,python2.7": "pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", @@ -324,31 +254,13 @@ function commandMessage(key) { "stable,pip,linux,cuda10.1,python2.7": "pip install torch torchvision", - "stable,pip,linux,cudanone,python3.5": - "pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,linux,cuda9.2,python3.5": - "pip3 install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,linux,cuda10.1,python3.5": - "pip3 install torch torchvision", - - "stable,pip,linux,cudanone,python3.6": - "pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,linux,cuda9.2,python3.6": - "pip3 install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,linux,cuda10.1,python3.6": - "pip3 install torch torchvision", - - "stable,pip,linux,cudanone,python3.7": + "stable,pip,linux,cudanone,python3": "pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", - "stable,pip,linux,cuda9.2,python3.7": + "stable,pip,linux,cuda9.2,python3": "pip3 install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html", - "stable,pip,linux,cuda10.1,python3.7": + "stable,pip,linux,cuda10.1,python3": "pip3 install torch torchvision", "stable,pip,windows,cudanone,python2.7": @@ -360,31 +272,13 @@ function commandMessage(key) { "stable,pip,windows,cuda10.1,python2.7": "# PyTorch does not support Python 2.7 on Windows. Please install with Python 3.", - "stable,pip,windows,cudanone,python3.5": + "stable,pip,windows,cudanone,python3": "pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", - "stable,pip,windows,cuda9.2,python3.5": + "stable,pip,windows,cuda9.2,python3": "pip3 install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html", - "stable,pip,windows,cuda10.1,python3.5": - "pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,windows,cudanone,python3.6": - "pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,windows,cuda9.2,python3.6": - "pip3 install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,windows,cuda10.1,python3.6": - "pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,windows,cudanone,python3.7": - "pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,windows,cuda9.2,python3.7": - "pip3 install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html", - - "stable,pip,windows,cuda10.1,python3.7": + "stable,pip,windows,cuda10.1,python3": "pip3 install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html", "stable,libtorch,linux,cudanone,cplusplus": @@ -423,31 +317,13 @@ function commandMessage(key) { "preview,conda,linux,cudanone,python2.7": "conda install pytorch torchvision cpuonly -c pytorch-nightly", - "preview,conda,linux,cuda9.2,python3.5": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly", - - "preview,conda,linux,cuda10.1,python3.5": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly", - - "preview,conda,linux,cudanone,python3.5": - "conda install pytorch torchvision cpuonly -c pytorch-nightly", - - "preview,conda,linux,cuda9.2,python3.6": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly", - - "preview,conda,linux,cuda10.1,python3.6": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly", - - "preview,conda,linux,cudanone,python3.6": - "conda install pytorch torchvision cpuonly -c pytorch-nightly", - - "preview,conda,linux,cuda9.2,python3.7": + "preview,conda,linux,cuda9.2,python3": "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly", - "preview,conda,linux,cuda10.1,python3.7": + "preview,conda,linux,cuda10.1,python3": "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly", - "preview,conda,linux,cudanone,python3.7": + "preview,conda,linux,cudanone,python3": "conda install pytorch torchvision cpuonly -c pytorch-nightly", "preview,conda,macos,cuda9.2,python2.7": @@ -459,31 +335,13 @@ function commandMessage(key) { "preview,conda,macos,cudanone,python2.7": "conda install pytorch torchvision -c pytorch-nightly", - "preview,conda,macos,cuda9.2,python3.5": + "preview,conda,macos,cuda9.2,python3": "conda install pytorch torchvision -c pytorch-nightly", - "preview,conda,macos,cuda10.1,python3.5": + "preview,conda,macos,cuda10.1,python3": "conda install pytorch torchvision -c pytorch-nightly", - "preview,conda,macos,cudanone,python3.5": - "conda install pytorch torchvision -c pytorch-nightly", - - "preview,conda,macos,cuda9.2,python3.6": - "conda install pytorch torchvision -c pytorch-nightly", - - "preview,conda,macos,cuda10.1,python3.6": - "conda install pytorch torchvision -c pytorch-nightly", - - "preview,conda,macos,cudanone,python3.6": - "conda install pytorch torchvision -c pytorch-nightly", - - "preview,conda,macos,cuda9.2,python3.7": - "conda install pytorch torchvision -c pytorch-nightly", - - "preview,conda,macos,cuda10.1,python3.7": - "conda install pytorch torchvision -c pytorch-nightly", - - "preview,conda,macos,cudanone,python3.7": + "preview,conda,macos,cudanone,python3": "conda install pytorch torchvision -c pytorch-nightly", "preview,conda,windows,cuda9.2,python2.7": @@ -495,31 +353,13 @@ function commandMessage(key) { "preview,conda,windows,cudanone,python2.7": "# Preview Build With Python 2.7 On Windows Not Supported.", - "preview,conda,windows,cuda9.2,python3.5": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly -c defaults -c conda-forge -c numba/label/dev", - - "preview,conda,windows,cuda10.1,python3.5": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly -c defaults -c conda-forge", - - "preview,conda,windows,cudanone,python3.5": - "conda install pytorch torchvision cpuonly -c pytorch-nightly -c defaults -c conda-forge", - - "preview,conda,windows,cuda9.2,python3.6": - "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly -c defaults -c conda-forge -c numba/label/dev", - - "preview,conda,windows,cuda10.1,python3.6": - "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly -c defaults -c conda-forge", - - "preview,conda,windows,cudanone,python3.6": - "conda install pytorch torchvision cpuonly -c pytorch-nightly -c defaults -c conda-forge", - - "preview,conda,windows,cuda9.2,python3.7": + "preview,conda,windows,cuda9.2,python3": "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly -c defaults -c conda-forge -c numba/label/dev", - "preview,conda,windows,cuda10.1,python3.7": + "preview,conda,windows,cuda10.1,python3": "conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly -c defaults -c conda-forge", - "preview,conda,windows,cudanone,python3.7": + "preview,conda,windows,cudanone,python3": "conda install pytorch torchvision cpuonly -c pytorch-nightly -c defaults -c conda-forge", "preview,pip,macos,cuda9.2,python2.7": @@ -531,31 +371,13 @@ function commandMessage(key) { "preview,pip,macos,cudanone,python2.7": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - "preview,pip,macos,cuda9.2,python3.5": + "preview,pip,macos,cuda9.2,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided", - "preview,pip,macos,cuda10.1,python3.5": + "preview,pip,macos,cuda10.1,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided", - "preview,pip,macos,cudanone,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - - "preview,pip,macos,cuda9.2,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided", - - "preview,pip,macos,cuda10.1,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided", - - "preview,pip,macos,cudanone,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - - "preview,pip,macos,cuda9.2,python3.7": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided", - - "preview,pip,macos,cuda10.1,python3.7": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided", - - "preview,pip,macos,cudanone,python3.7": + "preview,pip,macos,cudanone,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", "preview,pip,linux,cudanone,python2.7": @@ -567,31 +389,13 @@ function commandMessage(key) { "preview,pip,linux,cuda10.1,python2.7": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", - "preview,pip,linux,cudanone,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - - "preview,pip,linux,cuda9.2,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html", - - "preview,pip,linux,cuda10.1,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", - - "preview,pip,linux,cudanone,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - - "preview,pip,linux,cuda9.2,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html", - - "preview,pip,linux,cuda10.1,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", - - "preview,pip,linux,cudanone,python3.7": + "preview,pip,linux,cudanone,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - "preview,pip,linux,cuda9.2,python3.7": + "preview,pip,linux,cuda9.2,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html", - "preview,pip,linux,cuda10.1,python3.7": + "preview,pip,linux,cuda10.1,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", "preview,pip,windows,cudanone,python2.7": @@ -603,31 +407,13 @@ function commandMessage(key) { "preview,pip,windows,cuda10.1,python2.7": "# Preview Build With Python 2.7 On Windows Not Supported.", - "preview,pip,windows,cudanone,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - - "preview,pip,windows,cuda9.2,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html", - - "preview,pip,windows,cuda10.1,python3.5": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", - - "preview,pip,windows,cudanone,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - - "preview,pip,windows,cuda9.2,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html", - - "preview,pip,windows,cuda10.1,python3.6": - "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", - - "preview,pip,windows,cudanone,python3.7": + "preview,pip,windows,cudanone,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html", - "preview,pip,windows,cuda9.2,python3.7": + "preview,pip,windows,cuda9.2,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html", - "preview,pip,windows,cuda10.1,python3.7": + "preview,pip,windows,cuda10.1,python3": "pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html", "preview,libtorch,linux,cudanone,cplusplus":