Skip to content

Commit 772ddc9

Browse files
authored
Merge branch 'master' into patch-1
2 parents fb580f0 + 6738ff1 commit 772ddc9

25 files changed

+1103
-81
lines changed

.circleci/scripts/build_for_windows.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ pip install -r requirements.txt
3737
pip install pySoundFile
3838
# Force uninstall torch & related packages, we'll install them using conda later.
3939
pip uninstall -y torch torchvision torchtext
40-
conda install -yq -c pytorch "cudatoolkit=10.1" pytorch torchvision torchtext
41-
conda install torchaudio -c pytorch-test
40+
conda install -yq -c pytorch "cudatoolkit=10.1" pytorch torchvision torchtext torchaudio
4241
python -m spacy download de
4342
python -m spacy download en
4443
pushd ${PROJECT_DIR}

.jenkins/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
4848
# Step 1: Remove runnable code from tutorials that are not supposed to be run
4949
python $DIR/remove_runnable_code.py beginner_source/aws_distributed_training_tutorial.py beginner_source/aws_distributed_training_tutorial.py || true
5050
# python $DIR/remove_runnable_code.py advanced_source/ddp_pipeline_tutorial.py advanced_source/ddp_pipeline_tutorial.py || true
51-
# Temp remove for mnist download issue.
52-
python $DIR/remove_runnable_code.py beginner_source/fgsm_tutorial.py beginner_source/fgsm_tutorial.py || true
53-
python $DIR/remove_runnable_code.py intermediate_source/spatial_transformer_tutorial.py intermediate_source/spatial_transformer_tutorial.py || true
51+
# Temp remove for mnist download issue. (Re-enabled for 1.8.1)
52+
# python $DIR/remove_runnable_code.py beginner_source/fgsm_tutorial.py beginner_source/fgsm_tutorial.py || true
53+
# python $DIR/remove_runnable_code.py intermediate_source/spatial_transformer_tutorial.py intermediate_source/spatial_transformer_tutorial.py || true
5454

5555
# TODO: Fix bugs in these tutorials to make them runnable again
5656
# python $DIR/remove_runnable_code.py beginner_source/audio_classifier_tutorial.py beginner_source/audio_classifier_tutorial.py || true

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ In case you prefer to write your tutorial in jupyter, you can use [this script](
3535
* You can find information about contributing to PyTorch documentation in the
3636
PyTorch Repo [README.md](https://github.com/pytorch/pytorch/blob/master/README.md) file.
3737
* Additional information can be found in [PyTorch CONTRIBUTING.md](https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md).
38-

_static/torchvision_finetuning_instance_segmentation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@
14481448
" self.masks = list(sorted(os.listdir(os.path.join(root, \"PedMasks\"))))\n",
14491449
"\n",
14501450
" def __getitem__(self, idx):\n",
1451-
" # load images ad masks\n",
1451+
" # load images and masks\n",
14521452
" img_path = os.path.join(self.root, \"PNGImages\", self.imgs[idx])\n",
14531453
" mask_path = os.path.join(self.root, \"PedMasks\", self.masks[idx])\n",
14541454
" img = Image.open(img_path).convert(\"RGB\")\n",

_static/tv-training-code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, root, transforms):
2525
self.masks = list(sorted(os.listdir(os.path.join(root, "PedMasks"))))
2626

2727
def __getitem__(self, idx):
28-
# load images ad masks
28+
# load images and masks
2929
img_path = os.path.join(self.root, "PNGImages", self.imgs[idx])
3030
mask_path = os.path.join(self.root, "PedMasks", self.masks[idx])
3131
img = Image.open(img_path).convert("RGB")

advanced_source/cpp_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ For our extensions, the necessary binding code spans only four lines:
326326
327327
One bit to note here is the macro ``TORCH_EXTENSION_NAME``. The torch extension
328328
build will define it as the name you give your extension in the ``setup.py``
329-
script. In this case, the value of ``TORCH_EXTENSION_NAME`` would be "lltm".
329+
script. In this case, the value of ``TORCH_EXTENSION_NAME`` would be "lltm_cpp".
330330
This is to avoid having to maintain the name of the extension in two places
331331
(the build script and your C++ code), as a mismatch between the two can lead to
332332
nasty and hard to track issues.

0 commit comments

Comments
 (0)