Skip to content

Commit 347b277

Browse files
authored
Merge pull request #99 from iotamudelta/master
Merge from upstream
2 parents 4a1d7ff + 091d9b9 commit 347b277

File tree

254 files changed

+6094
-1640
lines changed

Some content is hidden

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

254 files changed

+6094
-1640
lines changed

.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ docs/source/scripts/activation_images/
141141
# PyCharm files
142142
.idea
143143

144-
# Visual Studio Code files
145-
.vscode
146-
.vs
147-
148144
# OSX dir files
149145
.DS_Store
150146

@@ -195,3 +191,11 @@ caffe2.egg-info
195191

196192
# Atom/Watchman required file
197193
.watchmanconfig
194+
195+
# BEGIN NOT-CLEAN-FILES (setup.py handles this marker. Do not change.)
196+
#
197+
# Below files are not deleted by "setup.py clean".
198+
199+
# Visual Studio Code files
200+
.vscode
201+
.vs

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ If you want to compile with CUDA support, install
148148
If you want to disable CUDA support, export environment variable `NO_CUDA=1`.
149149
Other potentially useful environment variables may be found in `setup.py`.
150150

151-
If you want to build on Windows, Visual Studio 2017 and NVTX are also needed.
151+
If you want to build on Windows, Visual Studio 2017 14.11 toolset and NVTX are also needed.
152+
Especially, for CUDA 8 build on Windows, there will be an additional requirement for VS 2015 Update 3 and a patch for it.
153+
The details of the patch can be found out [here](https://support.microsoft.com/en-gb/help/4020481/fix-link-exe-crashes-with-a-fatal-lnk1000-error-when-you-use-wholearch).
152154

153155
#### Install optional dependencies
154156

@@ -196,9 +198,10 @@ On Windows
196198
set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build"
197199
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
198200
set DISTUTILS_USE_SDK=1
199-
REM The following line is needed for Python 2.7, but the support for it is very experimental.
201+
REM The following two lines are needed for Python 2.7, but the support for it is very experimental.
200202
set MSSdk=1
201-
REM As for CUDA 8, VS2015 Update 2 or up is required to build PyTorch. Use the following two lines.
203+
set FORCE_PY27_BUILD=1
204+
REM As for CUDA 8, VS2015 Update 3 is also required to build PyTorch. Use the following two lines.
202205
set "PREBUILD_COMMAND=%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"
203206
set PREBUILD_COMMAND_ARGS=x64
204207

aten/doc/Type.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
#include <functional>
66

77
#include "ATen/ATenGeneral.h"
8-
#include "ATen/ArrayRef.h"
8+
#include "ATen/Allocator.h"
99
#include "ATen/Generator.h"
10-
#include "ATen/Half.h"
11-
#include "ATen/SparseTensorRef.h"
12-
#include "ATen/ScalarType.h"
1310
#include "ATen/Scalar.h"
11+
#include "ATen/ScalarType.h"
12+
#include "ATen/SparseTensorRef.h"
1413
#include "ATen/Tensor.h"
15-
#include "ATen/Allocator.h"
14+
#include "ATen/core/ArrayRef.h"
15+
#include "ATen/core/Half.h"
1616

1717
// To solve the conflict of s_addr in inaddr.h
1818
#ifdef _MSC_VER

aten/src/ATen/ATen.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#pragma once
22

33
#include "ATen/ATenGeneral.h"
4-
#include "ATen/CPUGeneral.h"
54
#include "ATen/Allocator.h"
6-
#include "ATen/Scalar.h"
7-
#include "ATen/Type.h"
8-
#include "ATen/Generator.h"
5+
#include "ATen/CPUGeneral.h"
6+
#include "ATen/CUDAGuard.h"
97
#include "ATen/Context.h"
8+
#include "ATen/Device.h"
9+
#include "ATen/DeviceGuard.h"
10+
#include "ATen/DimVector.h"
11+
#include "ATen/Dispatch.h"
12+
#include "ATen/Formatting.h"
13+
#include "ATen/Functions.h"
14+
#include "ATen/Generator.h"
15+
#include "ATen/Layout.h"
16+
#include "ATen/OptionsGuard.h"
17+
#include "ATen/Scalar.h"
1018
#include "ATen/Storage.h"
1119
#include "ATen/Tensor.h"
12-
#include "ATen/Device.h"
1320
#include "ATen/TensorGeometry.h"
14-
#include "ATen/Functions.h"
15-
#include "ATen/Formatting.h"
16-
#include "ATen/TensorOperators.h"
1721
#include "ATen/TensorMethods.h"
18-
#include "ATen/Dispatch.h"
19-
#include "ATen/DimVector.h"
20-
#include "ATen/DeviceGuard.h"
22+
#include "ATen/TensorOperators.h"
2123
#include "ATen/TensorOptions.h"
22-
#include "ATen/Layout.h"
23-
#include "ATen/OptionsGuard.h"
24-
#include "ATen/CUDAGuard.h"
25-
#include "ATen/Error.h"
24+
#include "ATen/Type.h"
25+
#include "ATen/core/Error.h"

aten/src/ATen/ATenGeneral.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <ATen/ATenGeneral.h>

aten/src/ATen/AccumulateType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include "ATen/Config.h"
3-
#include "ATen/Half.h"
3+
#include "ATen/core/Half.h"
44

55
// Defines the accumulation type for a scalar type.
66
// Example:

aten/src/ATen/Allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include <memory>
44
#include <stddef.h>
55

6-
#include <ATen/Error.h>
7-
#include <ATen/Retainable.h>
86
#include <ATen/Device.h>
7+
#include <ATen/Retainable.h>
8+
#include <ATen/core/Error.h>
99
#include <ATen/core/UniqueVoidPtr.h>
1010

1111
namespace at {

aten/src/ATen/ArrayRef.cpp

Lines changed: 0 additions & 1 deletion
This file was deleted.

aten/src/ATen/CPUFixedAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3+
#include "ATen/core/Error.h"
34
#include "TH/TH.h"
4-
#include "ATen/Error.h"
55

66
// This file creates a fake allocator that just throws exceptions if
77
// it is actually used.

aten/src/ATen/CheckGenerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

3-
#include "ATen/Error.h"
43
#include "ATen/Generator.h"
54
#include "ATen/Utils.h"
5+
#include "ATen/core/Error.h"
66

77
namespace at {
88

0 commit comments

Comments
 (0)