Skip to content

Commit f96d206

Browse files
committed
Merge branch 'master' into windows_ops
2 parents f02db77 + 7f1a05a commit f96d206

Some content is hidden

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

81 files changed

+2125
-1424
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2876,4 +2876,4 @@ workflows:
28762876
- master
28772877
jobs:
28782878
- smoke_test_docker_image_build:
2879-
context: org-member
2879+
context: org-member

.circleci/regenerate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def cmake_workflows(indentation=6):
212212
loader=jinja2.FileSystemLoader(d),
213213
lstrip_blocks=True,
214214
autoescape=False,
215+
keep_trailing_newline=True,
215216
)
216217

217218
with open(os.path.join(d, 'config.yml'), 'w') as f:

.circleci/unittest/linux/scripts/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ dependencies:
1515
- future
1616
- pillow>=4.1.1
1717
- scipy
18-
- av
18+
- av

.circleci/unittest/linux/scripts/post_process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
codecov
8+
codecov

.circleci/unittest/windows/scripts/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ conda activate "${env_dir}"
3636

3737
# 3. Install Conda dependencies
3838
printf "* Installing dependencies (except PyTorch)\n"
39-
conda env update --file "${this_dir}/environment.yml" --prune
39+
conda env update --file "${this_dir}/environment.yml" --prune

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ gen.yml
2424
.vscode/
2525
.idea/
2626
*.orig
27-
*-checkpoint.ipynb
27+
*-checkpoint.ipynb

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ file(GLOB HEADERS torchvision/csrc/*.h)
3636
# Image extension
3737
file(GLOB IMAGE_HEADERS torchvision/csrc/cpu/image/*.h)
3838
file(GLOB IMAGE_SOURCES torchvision/csrc/cpu/image/*.cpp)
39-
file(GLOB OPERATOR_SOURCES torchvision/csrc/cpu/*.h torchvision/csrc/cpu/*.cpp ${IMAGE_HEADERS} ${IMAGE_SOURCES} ${HEADERS} torchvision/csrc/*.cpp)
39+
file(GLOB OPERATOR_HEADERS torchvision/csrc/cpu/*.h)
40+
file(GLOB OPERATOR_SOURCES ${OPERATOR_HEADERS} torchvision/csrc/cpu/*.cpp ${IMAGE_HEADERS} ${IMAGE_SOURCES} ${HEADERS} torchvision/csrc/*.cpp)
4041
if(WITH_CUDA)
41-
file(GLOB OPERATOR_SOURCES ${OPERATOR_SOURCES} torchvision/csrc/cuda/*.h torchvision/csrc/cuda/*.cu)
42+
file(GLOB OPERATOR_HEADERS ${OPERATOR_HEADERS} torchvision/csrc/cuda/*.h)
43+
file(GLOB OPERATOR_SOURCES ${OPERATOR_SOURCES} ${OPERATOR_HEADERS} torchvision/csrc/cuda/*.cu)
4244
endif()
4345
file(GLOB MODELS_HEADERS torchvision/csrc/models/*.h)
4446
file(GLOB MODELS_SOURCES torchvision/csrc/models/*.h torchvision/csrc/models/*.cpp)
@@ -113,11 +115,11 @@ install(EXPORT TorchVisionTargets
113115

114116
install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
115117
install(FILES
116-
torchvision/csrc/cpu/vision_cpu.h
118+
${OPERATOR_HEADERS}
117119
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/cpu)
118120
if(WITH_CUDA)
119121
install(FILES
120-
torchvision/csrc/cuda/vision_cuda.h
122+
${OPERATOR_HEADERS}
121123
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/cuda)
122124
endif()
123125
install(FILES ${MODELS_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/models)

packaging/conda/build_vision.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
164164
mkdir "$output_folder"
165165

166166
if [[ "$py_ver" == 3.5 ]]; then
167-
export CONDA_TYPING_CONSTRAINT="- typing"
167+
export CONDA_TYPING_CONSTRAINT="- typing"
168168
else
169-
export CONDA_TYPING_CONSTRAINT=""
169+
export CONDA_TYPING_CONSTRAINT=""
170170
fi
171171

172172
export VSTOOLCHAIN_PACKAGE=vs2017

packaging/wheel/relocate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from wheel.bdist_wheel import get_abi_tag
2222

2323

24-
WHITELIST = {
24+
ALLOWLIST = {
2525
'libgcc_s.so.1', 'libstdc++.so.6', 'libm.so.6',
2626
'libdl.so.2', 'librt.so.1', 'libc.so.6',
2727
'libnsl.so.1', 'libutil.so.1', 'libpthread.so.0',
@@ -31,7 +31,7 @@
3131
'libglib-2.0.so.0', 'ld-linux-x86-64.so.2', 'ld-2.17.so'
3232
}
3333

34-
WINDOWS_WHITELIST = {
34+
WINDOWS_ALLOWLIST = {
3535
'MSVCP140.dll', 'KERNEL32.dll',
3636
'VCRUNTIME140_1.dll', 'VCRUNTIME140.dll',
3737
'api-ms-win-crt-heap-l1-1-0.dll',
@@ -164,7 +164,7 @@ def relocate_elf_library(patchelf, output_dir, output_library, binary):
164164
print('Omitting {0}'.format(library))
165165
continue
166166

167-
if library in WHITELIST:
167+
if library in ALLOWLIST:
168168
# Omit glibc/gcc/system libraries
169169
print('Omitting {0}'.format(library))
170170
continue
@@ -275,7 +275,7 @@ def relocate_dll_library(dumpbin, output_dir, output_library, binary):
275275

276276
while binary_queue != []:
277277
library, parent = binary_queue.pop(0)
278-
if library in WINDOWS_WHITELIST or library.startswith('api-ms-win'):
278+
if library in WINDOWS_ALLOWLIST or library.startswith('api-ms-win'):
279279
print('Omitting {0}'.format(library))
280280
continue
281281

references/video_classification/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ python -m torch.distributed.launch --nproc_per_node=8 --use_env train.py --data-
3131

3232
```bash
3333
python train.py --data-path=/data/kinectics400 --train-dir=train --val-dir=val --batch-size=8 --cache-dataset
34-
```
34+
```

0 commit comments

Comments
 (0)