Compare commits

...
2 Commits
Author SHA1 Message Date
AtlasAccount 89ccfe98c5 同步1.5.0 f65ae6da5e9651ee8c8aa10c1cfab9ee9ed69272
!2821 taakqueue场景下release para不使用queue
    Merge pull request !2821 from shibo/2.0.4.B030
同步1.8.1 438c8daf58550d882e8b4763910cc93b927d89f7
2021-12-05 15:35:22 +08:00
AtlasAccount 358dc94e35 同步1.5.0 c8a3fa5ae181cf41e79044e132d2ec89390e14a5
!2820 [Bugfix] 转变NpuMemoryCheck顺序,防止storage()未定义
    Merge pull request !2820 from 宇世康/master
同步1.8.1 438c8daf58550d882e8b4763910cc93b927d89f7
2021-12-04 16:18:36 +08:00
8 changed files with 229 additions and 206 deletions
+107 -107
View File
@@ -1,6 +1,6 @@
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/CMakeLists.txt pytorch-develop-150/aten/CMakeLists.txt
--- pytorch-v1.5.0/aten/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/CMakeLists.txt 2021-12-01 12:00:37.230962753 +0800
+++ pytorch-develop-150/aten/CMakeLists.txt 2021-12-05 15:35:13.189014405 +0800
@@ -22,8 +22,10 @@
set(ATen_CPU_INCLUDE)
set(ATen_THIRD_PARTY_INCLUDE)
@@ -51,7 +51,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(ATen_CPU_DEPENDENCY_LIBS ${ATen_CPU_DEPENDENCY_LIBS} PARENT_SCOPE)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/CMakeLists.txt pytorch-develop-150/aten/src/ATen/CMakeLists.txt
--- pytorch-v1.5.0/aten/src/ATen/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/CMakeLists.txt 2021-12-01 12:00:37.230962753 +0800
+++ pytorch-develop-150/aten/src/ATen/CMakeLists.txt 2021-12-05 15:35:17.928868880 +0800
@@ -67,6 +67,9 @@
FILE(GLOB native_quantized_h "native/quantized/*.h" "native/quantized/cpu/*.h")
FILE(GLOB native_cpu_h "native/cpu/*.h")
@@ -129,7 +129,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(ATen_QUANTIZED_SRCS ${ATen_QUANTIZED_SRCS} PARENT_SCOPE)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/core/dispatch/DispatchTable.h pytorch-develop-150/aten/src/ATen/core/dispatch/DispatchTable.h
--- pytorch-v1.5.0/aten/src/ATen/core/dispatch/DispatchTable.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/core/dispatch/DispatchTable.h 2021-12-01 12:00:37.230962753 +0800
+++ pytorch-develop-150/aten/src/ATen/core/dispatch/DispatchTable.h 2021-12-05 15:35:13.193014282 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -170,7 +170,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/function_wrapper.py pytorch-develop-150/aten/src/ATen/function_wrapper.py
--- pytorch-v1.5.0/aten/src/ATen/function_wrapper.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/function_wrapper.py 2021-12-01 12:00:37.234962776 +0800
+++ pytorch-develop-150/aten/src/ATen/function_wrapper.py 2021-12-05 15:35:13.193014282 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -354,7 +354,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
for option in declaration['options']:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/gen.py pytorch-develop-150/aten/src/ATen/gen.py
--- pytorch-v1.5.0/aten/src/ATen/gen.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/gen.py 2021-12-01 12:00:37.234962776 +0800
+++ pytorch-develop-150/aten/src/ATen/gen.py 2021-12-05 15:35:13.193014282 +0800
@@ -1,3 +1,18 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -512,7 +512,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
generate_outputs()
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/BatchLinearAlgebra.cpp pytorch-develop-150/aten/src/ATen/native/BatchLinearAlgebra.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/BatchLinearAlgebra.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/BatchLinearAlgebra.cpp 2021-12-01 12:00:37.234962776 +0800
+++ pytorch-develop-150/aten/src/ATen/native/BatchLinearAlgebra.cpp 2021-12-05 15:35:13.197014159 +0800
@@ -680,7 +680,7 @@
std::tuple<Tensor&, Tensor&> triangular_solve_out(Tensor& result, Tensor& clone_A, const Tensor& self, const Tensor& A,
bool upper, bool transpose, bool unitriangular) {
@@ -524,7 +524,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return std::tuple<Tensor&, Tensor&>(result, clone_A);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/cpu/Activation.cpp pytorch-develop-150/aten/src/ATen/native/cpu/Activation.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/cpu/Activation.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/cpu/Activation.cpp 2021-12-01 12:00:37.238962797 +0800
+++ pytorch-develop-150/aten/src/ATen/native/cpu/Activation.cpp 2021-12-05 15:35:13.201014035 +0800
@@ -339,20 +339,20 @@
void hardsigmoid_backward_kernel(TensorIterator& iter) {
@@ -552,7 +552,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
});
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/Memory.cpp pytorch-develop-150/aten/src/ATen/native/Memory.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/Memory.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/Memory.cpp 2021-12-01 12:00:37.238962797 +0800
+++ pytorch-develop-150/aten/src/ATen/native/Memory.cpp 2021-12-05 15:35:13.197014159 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -614,7 +614,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
detail::computeStorageSize(self.sizes(), self.strides()),
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/native_functions.yaml pytorch-develop-150/aten/src/ATen/native/native_functions.yaml
--- pytorch-v1.5.0/aten/src/ATen/native/native_functions.yaml 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/native_functions.yaml 2021-12-01 12:00:37.242962819 +0800
+++ pytorch-develop-150/aten/src/ATen/native/native_functions.yaml 2021-12-05 15:35:13.205013912 +0800
@@ -1,6 +1,5 @@
# See README.md in this directory for more guidance
@@ -7139,7 +7139,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+ NPU: rotated_overlaps_npu
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-dq-aarch64-neon.S pytorch-develop-150/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-dq-aarch64-neon.S
--- pytorch-v1.5.0/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-dq-aarch64-neon.S 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-dq-aarch64-neon.S 2021-12-01 12:00:37.258962906 +0800
+++ pytorch-develop-150/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-dq-aarch64-neon.S 2021-12-05 15:35:13.221013419 +0800
@@ -659,14 +659,14 @@
SUB x1, x1, 4
@@ -7165,7 +7165,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
CMP x1, 2
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/TensorCompare.cpp pytorch-develop-150/aten/src/ATen/native/TensorCompare.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/TensorCompare.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorCompare.cpp 2021-12-01 12:00:37.238962797 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorCompare.cpp 2021-12-05 15:35:13.201014035 +0800
@@ -64,7 +64,7 @@
Tensor isinf(const Tensor &self) {
@@ -7177,7 +7177,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return AT_DISPATCH_FLOATING_TYPES_AND_HALF(self.scalar_type(), "isinf", [&]() {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/TensorFactories.cpp pytorch-develop-150/aten/src/ATen/native/TensorFactories.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/TensorFactories.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorFactories.cpp 2021-12-01 12:00:37.238962797 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorFactories.cpp 2021-12-05 15:35:13.201014035 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7222,7 +7222,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/TensorProperties.cpp pytorch-develop-150/aten/src/ATen/native/TensorProperties.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/TensorProperties.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorProperties.cpp 2021-12-01 12:00:37.238962797 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorProperties.cpp 2021-12-05 15:35:13.201014035 +0800
@@ -87,6 +87,7 @@
if (self.is_contiguous(memory_format)) {
return self;
@@ -7233,7 +7233,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
"preserve memory format is unsupported by the contiguous operator");
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native/UpSampleBicubic2d.cpp pytorch-develop-150/aten/src/ATen/native/UpSampleBicubic2d.cpp
--- pytorch-v1.5.0/aten/src/ATen/native/UpSampleBicubic2d.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native/UpSampleBicubic2d.cpp 2021-12-01 12:00:37.238962797 +0800
+++ pytorch-develop-150/aten/src/ATen/native/UpSampleBicubic2d.cpp 2021-12-05 15:35:13.201014035 +0800
@@ -26,7 +26,7 @@
const scalar_t* in = &idata[output_y * input_width + output_x];
scalar_t* out = &odata[output_y * output_width + output_x];
@@ -7245,7 +7245,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
out += output_width * output_height;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/native_parse.py pytorch-develop-150/aten/src/ATen/native_parse.py
--- pytorch-v1.5.0/aten/src/ATen/native_parse.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/native_parse.py 2021-12-01 12:00:37.234962776 +0800
+++ pytorch-develop-150/aten/src/ATen/native_parse.py 2021-12-05 15:35:13.193014282 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -7283,7 +7283,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
msg = '''Exception raised in processing function:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/preprocess_declarations.py pytorch-develop-150/aten/src/ATen/preprocess_declarations.py
--- pytorch-v1.5.0/aten/src/ATen/preprocess_declarations.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/preprocess_declarations.py 2021-12-01 12:00:37.234962776 +0800
+++ pytorch-develop-150/aten/src/ATen/preprocess_declarations.py 2021-12-05 15:35:13.193014282 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -7315,7 +7315,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/templates/TensorBody.h pytorch-develop-150/aten/src/ATen/templates/TensorBody.h
--- pytorch-v1.5.0/aten/src/ATen/templates/TensorBody.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/templates/TensorBody.h 2021-12-01 12:00:37.266962949 +0800
+++ pytorch-develop-150/aten/src/ATen/templates/TensorBody.h 2021-12-05 15:35:13.225013297 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7348,7 +7348,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/ATen/templates/TensorMethods.h pytorch-develop-150/aten/src/ATen/templates/TensorMethods.h
--- pytorch-v1.5.0/aten/src/ATen/templates/TensorMethods.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/ATen/templates/TensorMethods.h 2021-12-01 12:00:37.266962949 +0800
+++ pytorch-develop-150/aten/src/ATen/templates/TensorMethods.h 2021-12-05 15:35:13.225013297 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7382,7 +7382,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/TH/CMakeLists.txt pytorch-develop-150/aten/src/TH/CMakeLists.txt
--- pytorch-v1.5.0/aten/src/TH/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/TH/CMakeLists.txt 2021-12-01 12:00:37.266962949 +0800
+++ pytorch-develop-150/aten/src/TH/CMakeLists.txt 2021-12-05 15:35:13.229013172 +0800
@@ -48,6 +48,11 @@
${CMAKE_CURRENT_SOURCE_DIR}
PARENT_SCOPE)
@@ -7397,7 +7397,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/TH/generic/THStorage.cpp pytorch-develop-150/aten/src/TH/generic/THStorage.cpp
--- pytorch-v1.5.0/aten/src/TH/generic/THStorage.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/TH/generic/THStorage.cpp 2021-12-01 12:00:37.266962949 +0800
+++ pytorch-develop-150/aten/src/TH/generic/THStorage.cpp 2021-12-05 15:35:13.229013172 +0800
@@ -1,9 +1,32 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7506,7 +7506,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/aten/src/TH/generic/THStorage.h pytorch-develop-150/aten/src/TH/generic/THStorage.h
--- pytorch-v1.5.0/aten/src/TH/generic/THStorage.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/aten/src/TH/generic/THStorage.h 2021-12-01 12:00:37.266962949 +0800
+++ pytorch-develop-150/aten/src/TH/generic/THStorage.h 2021-12-05 15:35:13.229013172 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7545,7 +7545,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/CMakeLists.txt pytorch-develop-150/c10/CMakeLists.txt
--- pytorch-v1.5.0/c10/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/CMakeLists.txt 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/CMakeLists.txt 2021-12-05 15:35:13.237012926 +0800
@@ -63,6 +63,14 @@
message(STATUS "don't use NUMA")
endif()
@@ -7574,7 +7574,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# not checked in
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/Backend.h pytorch-develop-150/c10/core/Backend.h
--- pytorch-v1.5.0/c10/core/Backend.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/Backend.h 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/Backend.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7671,7 +7671,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
case Backend::CUDA:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/Device.cpp pytorch-develop-150/c10/core/Device.cpp
--- pytorch-v1.5.0/c10/core/Device.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/Device.cpp 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/Device.cpp 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7711,7 +7711,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
types.begin(),
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/Device.h pytorch-develop-150/c10/core/Device.h
--- pytorch-v1.5.0/c10/core/Device.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/Device.h 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/Device.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7746,7 +7746,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return type_ == DeviceType::CPU;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/DeviceType.cpp pytorch-develop-150/c10/core/DeviceType.cpp
--- pytorch-v1.5.0/c10/core/DeviceType.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/DeviceType.cpp 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/DeviceType.cpp 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7786,7 +7786,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return false;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/DeviceType.h pytorch-develop-150/c10/core/DeviceType.h
--- pytorch-v1.5.0/c10/core/DeviceType.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/DeviceType.h 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/DeviceType.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7829,7 +7829,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
constexpr DeviceType kXLA = DeviceType::XLA;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/DispatchKey.cpp pytorch-develop-150/c10/core/DispatchKey.cpp
--- pytorch-v1.5.0/c10/core/DispatchKey.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/DispatchKey.cpp 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/DispatchKey.cpp 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7861,7 +7861,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
case DispatchKey::SparseCPUTensorId:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/DispatchKey.h pytorch-develop-150/c10/core/DispatchKey.h
--- pytorch-v1.5.0/c10/core/DispatchKey.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/DispatchKey.h 2021-12-01 12:00:37.274962993 +0800
+++ pytorch-develop-150/c10/core/DispatchKey.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7893,7 +7893,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/Storage.h pytorch-develop-150/c10/core/Storage.h
--- pytorch-v1.5.0/c10/core/Storage.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/Storage.h 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/core/Storage.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7927,7 +7927,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
};
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/StorageImpl.cpp pytorch-develop-150/c10/core/StorageImpl.cpp
--- pytorch-v1.5.0/c10/core/StorageImpl.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/StorageImpl.cpp 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/core/StorageImpl.cpp 2021-12-05 15:35:13.237012926 +0800
@@ -1 +1,18 @@
#include <c10/core/StorageImpl.h>
+
@@ -7949,7 +7949,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+} // namespace c10
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/StorageImpl.h pytorch-develop-150/c10/core/StorageImpl.h
--- pytorch-v1.5.0/c10/core/StorageImpl.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/StorageImpl.h 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/core/StorageImpl.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,11 +1,55 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8076,7 +8076,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/TensorImpl.h pytorch-develop-150/c10/core/TensorImpl.h
--- pytorch-v1.5.0/c10/core/TensorImpl.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/TensorImpl.h 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/core/TensorImpl.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8144,7 +8144,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/core/TensorOptions.h pytorch-develop-150/c10/core/TensorOptions.h
--- pytorch-v1.5.0/c10/core/TensorOptions.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/core/TensorOptions.h 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/core/TensorOptions.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8185,7 +8185,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
} else if (tid == DispatchKey::HIPTensorId) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/cuda/CMakeLists.txt pytorch-develop-150/c10/cuda/CMakeLists.txt
--- pytorch-v1.5.0/c10/cuda/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/cuda/CMakeLists.txt 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/cuda/CMakeLists.txt 2021-12-05 15:35:13.237012926 +0800
@@ -24,6 +24,7 @@
CUDACachingAllocator.cpp
impl/CUDAGuardImpl.cpp
@@ -8204,7 +8204,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
torch_cuda_based_add_library(c10_cuda ${C10_CUDA_SRCS} ${C10_CUDA_HEADERS})
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/c10/macros/Export.h pytorch-develop-150/c10/macros/Export.h
--- pytorch-v1.5.0/c10/macros/Export.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/c10/macros/Export.h 2021-12-01 12:00:37.278963014 +0800
+++ pytorch-develop-150/c10/macros/Export.h 2021-12-05 15:35:13.237012926 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8331,7 +8331,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/caffe2/CMakeLists.txt pytorch-develop-150/caffe2/CMakeLists.txt
--- pytorch-v1.5.0/caffe2/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/caffe2/CMakeLists.txt 2021-12-01 12:00:37.282963037 +0800
+++ pytorch-develop-150/caffe2/CMakeLists.txt 2021-12-05 15:35:13.241012803 +0800
@@ -32,6 +32,7 @@
# Add source, includes, and libs to lists
list(APPEND Caffe2_CPU_SRCS ${ATen_CPU_SRCS})
@@ -8486,7 +8486,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# Call again since Caffe2_HIP_INCLUDE is extended with ATen include dirs.
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/.clang-format pytorch-develop-150/.clang-format
--- pytorch-v1.5.0/.clang-format 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/.clang-format 2021-12-01 12:00:37.218962688 +0800
+++ pytorch-develop-150/.clang-format 2021-12-05 15:35:13.185014529 +0800
@@ -84,5 +84,4 @@
SpacesInSquareBrackets: false
Standard: Cpp11
@@ -8497,7 +8497,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
\ No newline at end of file
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/cmake/BuildVariables.cmake pytorch-develop-150/cmake/BuildVariables.cmake
--- pytorch-v1.5.0/cmake/BuildVariables.cmake 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/cmake/BuildVariables.cmake 2021-12-01 12:00:37.338963341 +0800
+++ pytorch-develop-150/cmake/BuildVariables.cmake 2021-12-05 15:35:13.297011077 +0800
@@ -11,6 +11,7 @@
# CMakeLists.txt files under each folder respectively.
set(Caffe2_CPU_SRCS)
@@ -8524,7 +8524,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# symbols. However, if the lib is whole linked in caffe2 lib, we don't want
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/cmake/Codegen.cmake pytorch-develop-150/cmake/Codegen.cmake
--- pytorch-v1.5.0/cmake/Codegen.cmake 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/cmake/Codegen.cmake 2021-12-01 12:00:37.338963341 +0800
+++ pytorch-develop-150/cmake/Codegen.cmake 2021-12-05 15:35:13.297011077 +0800
@@ -191,13 +191,14 @@
file(READ ${CMAKE_BINARY_DIR}/aten/src/ATen/generated_cpp.txt generated_cpp)
file(READ ${CMAKE_BINARY_DIR}/aten/src/ATen/generated_cpp.txt-cuda cuda_generated_cpp)
@@ -8555,7 +8555,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
endif()
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/cmake/Dependencies.cmake pytorch-develop-150/cmake/Dependencies.cmake
--- pytorch-v1.5.0/cmake/Dependencies.cmake 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/cmake/Dependencies.cmake 2021-12-01 12:00:37.338963341 +0800
+++ pytorch-develop-150/cmake/Dependencies.cmake 2021-12-05 15:35:13.297011077 +0800
@@ -1509,6 +1509,13 @@
ENDIF(NOT C_HAS_THREAD)
endif()
@@ -8572,7 +8572,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
#
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/cmake/Summary.cmake pytorch-develop-150/cmake/Summary.cmake
--- pytorch-v1.5.0/cmake/Summary.cmake 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/cmake/Summary.cmake 2021-12-01 12:00:37.338963341 +0800
+++ pytorch-develop-150/cmake/Summary.cmake 2021-12-05 15:35:13.301010955 +0800
@@ -134,6 +134,7 @@
if(NOT "${SELECTED_OP_LIST}" STREQUAL "")
message(STATUS " SELECTED_OP_LIST : ${SELECTED_OP_LIST}")
@@ -8583,7 +8583,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
endfunction()
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/cmake/TorchConfig.cmake.in pytorch-develop-150/cmake/TorchConfig.cmake.in
--- pytorch-v1.5.0/cmake/TorchConfig.cmake.in 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/cmake/TorchConfig.cmake.in 2021-12-01 12:00:37.338963341 +0800
+++ pytorch-develop-150/cmake/TorchConfig.cmake.in 2021-12-05 15:35:13.301010955 +0800
@@ -112,6 +112,11 @@
list(APPEND TORCH_LIBRARIES ${TORCH_CUDA_LIBRARIES})
endif()
@@ -8598,7 +8598,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=@GLIBCXX_USE_CXX11_ABI@")
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/CMakeLists.txt pytorch-develop-150/CMakeLists.txt
--- pytorch-v1.5.0/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/CMakeLists.txt 2021-12-01 12:00:37.218962688 +0800
+++ pytorch-develop-150/CMakeLists.txt 2021-12-05 15:35:13.185014529 +0800
@@ -205,6 +205,10 @@
option(USE_TBB "Use TBB" OFF)
option(ONNX_ML "Enable traditional ONNX ML API." ON)
@@ -8665,7 +8665,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-braces")
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/.dockerignore pytorch-develop-150/.dockerignore
--- pytorch-v1.5.0/.dockerignore 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/.dockerignore 2021-12-01 12:00:37.218962688 +0800
+++ pytorch-develop-150/.dockerignore 2021-12-05 15:35:13.185014529 +0800
@@ -1,257 +1 @@
-# READ THIS BEFORE YOU REFACTOR ME
-#
@@ -8941,7 +8941,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
\ No newline at end of file
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/requirements.txt pytorch-develop-150/requirements.txt
--- pytorch-v1.5.0/requirements.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/requirements.txt 2021-12-01 12:00:37.222962710 +0800
+++ pytorch-develop-150/requirements.txt 2021-12-05 15:35:13.233013049 +0800
@@ -4,4 +4,13 @@
requests
setuptools
@@ -8961,7 +8961,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
\ No newline at end of file
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/setup.py pytorch-develop-150/setup.py
--- pytorch-v1.5.0/setup.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/setup.py 2021-12-01 12:00:37.222962710 +0800
+++ pytorch-develop-150/setup.py 2021-12-05 15:35:13.233013049 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9063,7 +9063,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
'python/serialized_test/data/operator_test/*.zip',
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/derivatives.yaml pytorch-develop-150/tools/autograd/derivatives.yaml
--- pytorch-v1.5.0/tools/autograd/derivatives.yaml 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/derivatives.yaml 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/derivatives.yaml 2021-12-05 15:35:13.896992588 +0800
@@ -107,6 +107,10 @@
#
# NB: The parameter names here MUST be consistent with the parameter names
@@ -9188,7 +9188,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
\ No newline at end of file
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/dump_utils.py pytorch-develop-150/tools/autograd/dump_utils.py
--- pytorch-v1.5.0/tools/autograd/dump_utils.py 1970-01-01 08:00:00.000000000 +0800
+++ pytorch-develop-150/tools/autograd/dump_utils.py 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/dump_utils.py 2021-12-05 15:35:13.896992588 +0800
@@ -0,0 +1,312 @@
+# Copyright (c) 2021 Huawei Technologies Co., Ltd
+# All rights reserved.
@@ -9504,7 +9504,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+ return prepare_to_check_overflow, overflow_dump_inputs
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/gen_autograd_functions.py pytorch-develop-150/tools/autograd/gen_autograd_functions.py
--- pytorch-v1.5.0/tools/autograd/gen_autograd_functions.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/gen_autograd_functions.py 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/gen_autograd_functions.py 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2021 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9710,7 +9710,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/gen_python_functions.py pytorch-develop-150/tools/autograd/gen_python_functions.py
--- pytorch-v1.5.0/tools/autograd/gen_python_functions.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/gen_python_functions.py 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/gen_python_functions.py 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,20 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9752,7 +9752,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
'value': argname,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/gen_variable_type.py pytorch-develop-150/tools/autograd/gen_variable_type.py
--- pytorch-v1.5.0/tools/autograd/gen_variable_type.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/gen_variable_type.py 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/gen_variable_type.py 2021-12-05 15:35:17.940868514 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2021 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9920,7 +9920,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/templates/Functions.cpp pytorch-develop-150/tools/autograd/templates/Functions.cpp
--- pytorch-v1.5.0/tools/autograd/templates/Functions.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/templates/Functions.cpp 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/templates/Functions.cpp 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2021 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10001,7 +10001,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
auto sparse = sparse_.coalesce();
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/templates/python_torch_functions.cpp pytorch-develop-150/tools/autograd/templates/python_torch_functions.cpp
--- pytorch-v1.5.0/tools/autograd/templates/python_torch_functions.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/templates/python_torch_functions.cpp 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/templates/python_torch_functions.cpp 2021-12-05 15:35:13.896992588 +0800
@@ -22,7 +22,7 @@
#include "torch/csrc/autograd/generated/variable_factories.h"
#include "torch/csrc/utils/structseq.h"
@@ -10085,7 +10085,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/templates/python_variable_methods.cpp pytorch-develop-150/tools/autograd/templates/python_variable_methods.cpp
--- pytorch-v1.5.0/tools/autograd/templates/python_variable_methods.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/templates/python_variable_methods.cpp 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/templates/python_variable_methods.cpp 2021-12-05 15:35:13.896992588 +0800
@@ -15,7 +15,13 @@
#include "torch/csrc/cuda/Stream.h"
#include "torch/csrc/cuda/Event.h"
@@ -10180,7 +10180,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
{"has_names", (PyCFunction)THPVariable_has_names, METH_NOARGS, NULL},
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/templates/VariableType.cpp pytorch-develop-150/tools/autograd/templates/VariableType.cpp
--- pytorch-v1.5.0/tools/autograd/templates/VariableType.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/templates/VariableType.cpp 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/templates/VariableType.cpp 2021-12-05 15:35:17.940868514 +0800
@@ -1,7 +1,28 @@
+// Copyright (c) 2021 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10212,7 +10212,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/autograd/templates/VariableType.h pytorch-develop-150/tools/autograd/templates/VariableType.h
--- pytorch-v1.5.0/tools/autograd/templates/VariableType.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/autograd/templates/VariableType.h 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/autograd/templates/VariableType.h 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,20 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10244,7 +10244,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
const at::Tensor & unpack(const Tensor & t, const char * name, int pos);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/tools/build_variables.bzl pytorch-develop-150/tools/build_variables.bzl
--- pytorch-v1.5.0/tools/build_variables.bzl 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/tools/build_variables.bzl 2021-12-01 12:00:37.930966561 +0800
+++ pytorch-develop-150/tools/build_variables.bzl 2021-12-05 15:35:13.896992588 +0800
@@ -46,6 +46,7 @@
"torch/csrc/autograd/functions/utils.cpp",
"torch/csrc/autograd/input_buffer.cpp",
@@ -10330,7 +10330,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-def grad(outputs: _TensorOrTensors, inputs: _TensorOrTensors, grad_outputs: Optional[_TensorOrTensors]=..., retain_graph: Optional[bool]=..., create_graph: bool=..., only_inputs: bool=..., allow_unused: bool=...) -> Tuple[Tensor, ...]: ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/autograd/profiler.py pytorch-develop-150/torch/autograd/profiler.py
--- pytorch-v1.5.0/torch/autograd/profiler.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/autograd/profiler.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/autograd/profiler.py 2021-12-05 15:35:13.896992588 +0800
@@ -1,8 +1,25 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -10807,7 +10807,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return ''.join(result)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/CMakeLists.txt pytorch-develop-150/torch/CMakeLists.txt
--- pytorch-v1.5.0/torch/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/CMakeLists.txt 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/CMakeLists.txt 2021-12-05 15:35:13.896992588 +0800
@@ -97,6 +97,7 @@
${TORCH_SRC_DIR}/csrc/tensor/python_tensor.cpp
${TORCH_SRC_DIR}/csrc/utils.cpp
@@ -10839,7 +10839,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
endif()
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/engine.cpp pytorch-develop-150/torch/csrc/autograd/engine.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/engine.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/engine.cpp 2021-12-01 12:00:37.938966605 +0800
+++ pytorch-develop-150/torch/csrc/autograd/engine.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10991,7 +10991,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
auto event = c10::Event{c10::DeviceType::CUDA};
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/functions/tensor.cpp pytorch-develop-150/torch/csrc/autograd/functions/tensor.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/functions/tensor.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/functions/tensor.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/functions/tensor.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11023,7 +11023,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
/*non_blocking=*/false,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/init.cpp pytorch-develop-150/torch/csrc/autograd/init.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/init.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/init.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/init.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11066,7 +11066,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
m.def("_enable_profiler", enableProfiler);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/input_buffer.cpp pytorch-develop-150/torch/csrc/autograd/input_buffer.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/input_buffer.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/input_buffer.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/input_buffer.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11118,7 +11118,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
auto& old_var = buffer[pos];
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/profiler.cpp pytorch-develop-150/torch/csrc/autograd/profiler.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/profiler.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/profiler.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/profiler.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11358,7 +11358,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
CUDAStubs::~CUDAStubs() = default;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/profiler.h pytorch-develop-150/torch/csrc/autograd/profiler.h
--- pytorch-v1.5.0/torch/csrc/autograd/profiler.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/profiler.h 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/profiler.h 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11494,7 +11494,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/python_variable.cpp pytorch-develop-150/torch/csrc/autograd/python_variable.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/python_variable.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/python_variable.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/python_variable.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11548,7 +11548,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
{"is_complex", (getter)THPVariable_is_complex, nullptr, nullptr, nullptr},
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/python_variable_indexing.cpp pytorch-develop-150/torch/csrc/autograd/python_variable_indexing.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/python_variable_indexing.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/python_variable_indexing.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/python_variable_indexing.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11579,7 +11579,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
at::Device self_device = self_.device();
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/record_function.cpp pytorch-develop-150/torch/csrc/autograd/record_function.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/record_function.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/record_function.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/record_function.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -154,6 +154,12 @@
}
}
@@ -11613,7 +11613,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/record_function.h pytorch-develop-150/torch/csrc/autograd/record_function.h
--- pytorch-v1.5.0/torch/csrc/autograd/record_function.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/record_function.h 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/record_function.h 2021-12-05 15:35:13.904992342 +0800
@@ -44,6 +44,9 @@
// Default constructor is used with before function called afterwards
RecordFunction() {}
@@ -11677,7 +11677,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if (torch::autograd::profiler::needsInputs()) { \
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/utils/wrap_outputs.h pytorch-develop-150/torch/csrc/autograd/utils/wrap_outputs.h
--- pytorch-v1.5.0/torch/csrc/autograd/utils/wrap_outputs.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/utils/wrap_outputs.h 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/autograd/utils/wrap_outputs.h 2021-12-05 15:35:13.904992342 +0800
@@ -168,6 +168,45 @@
return r.release();
}
@@ -11726,7 +11726,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if (!r) throw python_error();
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/autograd/VariableTypeManual.cpp pytorch-develop-150/torch/csrc/autograd/VariableTypeManual.cpp
--- pytorch-v1.5.0/torch/csrc/autograd/VariableTypeManual.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/autograd/VariableTypeManual.cpp 2021-12-01 12:00:37.938966605 +0800
+++ pytorch-develop-150/torch/csrc/autograd/VariableTypeManual.cpp 2021-12-05 15:35:13.904992342 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11760,7 +11760,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if (!t.defined()) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/distributed/c10d/comm.cpp pytorch-develop-150/torch/csrc/distributed/c10d/comm.cpp
--- pytorch-v1.5.0/torch/csrc/distributed/c10d/comm.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/comm.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/comm.cpp 2021-12-05 15:35:13.908992219 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11866,7 +11866,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
while (!in_flight.empty()) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/distributed/c10d/init.cpp pytorch-develop-150/torch/csrc/distributed/c10d/init.cpp
--- pytorch-v1.5.0/torch/csrc/distributed/c10d/init.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/init.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/init.cpp 2021-12-05 15:35:13.908992219 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11923,7 +11923,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
.def("is_success", &::c10d::ProcessGroup::Work::isSuccess)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/distributed/c10d/reducer.cpp pytorch-develop-150/torch/csrc/distributed/c10d/reducer.cpp
--- pytorch-v1.5.0/torch/csrc/distributed/c10d/reducer.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/reducer.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/reducer.cpp 2021-12-05 15:35:13.908992219 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12054,7 +12054,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/DynamicTypes.cpp pytorch-develop-150/torch/csrc/DynamicTypes.cpp
--- pytorch-v1.5.0/torch/csrc/DynamicTypes.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/DynamicTypes.cpp 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/csrc/DynamicTypes.cpp 2021-12-05 15:35:13.900992465 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12103,7 +12103,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return it->second;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/Generator.cpp pytorch-develop-150/torch/csrc/Generator.cpp
--- pytorch-v1.5.0/torch/csrc/Generator.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/Generator.cpp 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/csrc/Generator.cpp 2021-12-05 15:35:13.900992465 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12171,7 +12171,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
#endif
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/generic/serialization.cpp pytorch-develop-150/torch/csrc/generic/serialization.cpp
--- pytorch-v1.5.0/torch/csrc/generic/serialization.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/generic/serialization.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/generic/serialization.cpp 2021-12-05 15:35:13.908992219 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12271,7 +12271,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/generic/Storage.cpp pytorch-develop-150/torch/csrc/generic/Storage.cpp
--- pytorch-v1.5.0/torch/csrc/generic/Storage.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/generic/Storage.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/generic/Storage.cpp 2021-12-05 15:35:13.908992219 +0800
@@ -1,7 +1,25 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12350,7 +12350,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
for (Py_ssize_t i = 0; i < length; i++) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/generic/StorageMethods.cpp pytorch-develop-150/torch/csrc/generic/StorageMethods.cpp
--- pytorch-v1.5.0/torch/csrc/generic/StorageMethods.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/generic/StorageMethods.cpp 2021-12-01 12:00:37.942966626 +0800
+++ pytorch-develop-150/torch/csrc/generic/StorageMethods.cpp 2021-12-05 15:35:13.908992219 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12398,7 +12398,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
{"_write_file", (PyCFunction)THPStorage_(writeFile), METH_VARARGS, nullptr},
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/Module.cpp pytorch-develop-150/torch/csrc/Module.cpp
--- pytorch-v1.5.0/torch/csrc/Module.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/Module.cpp 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/csrc/Module.cpp 2021-12-05 15:35:17.940868514 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12544,7 +12544,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
auto set_module_attr = [&](const char* name, PyObject* v, bool incref = true) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/tensor/python_tensor.cpp pytorch-develop-150/torch/csrc/tensor/python_tensor.cpp
--- pytorch-v1.5.0/torch/csrc/tensor/python_tensor.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/tensor/python_tensor.cpp 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/tensor/python_tensor.cpp 2021-12-05 15:35:13.916991972 +0800
@@ -1,18 +1,35 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12921,7 +12921,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+} // namespace torch
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/utils/init.cpp pytorch-develop-150/torch/csrc/utils/init.cpp
--- pytorch-v1.5.0/torch/csrc/utils/init.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/utils/init.cpp 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/utils/init.cpp 2021-12-05 15:35:13.916991972 +0800
@@ -1,7 +1,13 @@
#include <ATen/core/ivalue.h>
#include <torch/csrc/utils/init.h>
@@ -13086,7 +13086,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
} // namespace torch
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/utils/init.h pytorch-develop-150/torch/csrc/utils/init.h
--- pytorch-v1.5.0/torch/csrc/utils/init.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/utils/init.h 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/utils/init.h 2021-12-05 15:35:13.916991972 +0800
@@ -8,4 +8,7 @@
void initThroughputBenchmarkBindings(PyObject* module);
@@ -13097,7 +13097,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
} // namespace torch
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/utils/python_arg_parser.h pytorch-develop-150/torch/csrc/utils/python_arg_parser.h
--- pytorch-v1.5.0/torch/csrc/utils/python_arg_parser.h 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/utils/python_arg_parser.h 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/utils/python_arg_parser.h 2021-12-05 15:35:13.916991972 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -13132,7 +13132,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return at::Device(device_str);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/utils/tensor_layouts.cpp pytorch-develop-150/torch/csrc/utils/tensor_layouts.cpp
--- pytorch-v1.5.0/torch/csrc/utils/tensor_layouts.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_layouts.cpp 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_layouts.cpp 2021-12-05 15:35:13.920991848 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -13163,7 +13163,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
registerLayoutObject((THPLayout*)strided_layout, at::Backend::QuantizedCPU);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/utils/tensor_new.cpp pytorch-develop-150/torch/csrc/utils/tensor_new.cpp
--- pytorch-v1.5.0/torch/csrc/utils/tensor_new.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_new.cpp 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_new.cpp 2021-12-05 15:35:13.920991848 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -13299,7 +13299,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
" or ", c10::DispatchKey::XLATensorId,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/csrc/utils/tensor_types.cpp pytorch-develop-150/torch/csrc/utils/tensor_types.cpp
--- pytorch-v1.5.0/torch/csrc/utils/tensor_types.cpp 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_types.cpp 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_types.cpp 2021-12-05 15:35:13.920991848 +0800
@@ -1,58 +1,91 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -13512,7 +13512,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-def get_rng_state(): ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/distributed/distributed_c10d.py pytorch-develop-150/torch/distributed/distributed_c10d.py
--- pytorch-v1.5.0/torch/distributed/distributed_c10d.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/distributed/distributed_c10d.py 2021-12-01 12:00:37.954966691 +0800
+++ pytorch-develop-150/torch/distributed/distributed_c10d.py 2021-12-05 15:35:13.920991848 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13593,7 +13593,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/__init__.py pytorch-develop-150/torch/__init__.py
--- pytorch-v1.5.0/torch/__init__.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/__init__.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/__init__.py 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13636,7 +13636,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
\ No newline at end of file
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/lib/c10d/CMakeLists.txt pytorch-develop-150/torch/lib/c10d/CMakeLists.txt
--- pytorch-v1.5.0/torch/lib/c10d/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/lib/c10d/CMakeLists.txt 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/lib/c10d/CMakeLists.txt 2021-12-05 15:35:13.920991848 +0800
@@ -28,6 +28,10 @@
option(USE_C10D_NCCL "USE C10D NCCL" ON)
endif()
@@ -13689,7 +13689,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
copy_header(ProcessGroupMPI.hpp)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/lib/libshm/CMakeLists.txt pytorch-develop-150/torch/lib/libshm/CMakeLists.txt
--- pytorch-v1.5.0/torch/lib/libshm/CMakeLists.txt 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/lib/libshm/CMakeLists.txt 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/lib/libshm/CMakeLists.txt 2021-12-05 15:35:13.920991848 +0800
@@ -37,8 +37,11 @@
SET_TARGET_PROPERTIES(shm PROPERTIES
PREFIX "lib"
@@ -13746,7 +13746,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-_maybe_indices_t = _scalar_or_tuple_2_t[Tensor]
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/nn/functional.py pytorch-develop-150/torch/nn/functional.py
--- pytorch-v1.5.0/torch/nn/functional.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/nn/functional.py 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/nn/functional.py 2021-12-05 15:35:13.924991725 +0800
@@ -1611,7 +1611,7 @@
else:
output = input.matmul(weight.t())
@@ -13769,7 +13769,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-from . import parallel as parallel
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/nn/modules/batchnorm.py pytorch-develop-150/torch/nn/modules/batchnorm.py
--- pytorch-v1.5.0/torch/nn/modules/batchnorm.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/nn/modules/batchnorm.py 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/nn/modules/batchnorm.py 2021-12-05 15:35:13.924991725 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13801,7 +13801,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
self.register_parameter('running_var', None)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/nn/modules/module.py pytorch-develop-150/torch/nn/modules/module.py
--- pytorch-v1.5.0/torch/nn/modules/module.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/nn/modules/module.py 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/nn/modules/module.py 2021-12-05 15:35:13.924991725 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13961,7 +13961,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return t.to(device, dtype if t.is_floating_point() else None, non_blocking, memory_format=convert_to_format)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/nn/modules/normalization.py pytorch-develop-150/torch/nn/modules/normalization.py
--- pytorch-v1.5.0/torch/nn/modules/normalization.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/nn/modules/normalization.py 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/nn/modules/normalization.py 2021-12-05 15:35:13.924991725 +0800
@@ -128,13 +128,14 @@
"""
__constants__ = ['normalized_shape', 'eps', 'elementwise_affine']
@@ -14030,7 +14030,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
- module_kwargs: Optional[Any] = ...) -> Tensor: ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/nn/parallel/distributed.py pytorch-develop-150/torch/nn/parallel/distributed.py
--- pytorch-v1.5.0/torch/nn/parallel/distributed.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/nn/parallel/distributed.py 2021-12-01 12:00:37.958966714 +0800
+++ pytorch-develop-150/torch/nn/parallel/distributed.py 2021-12-05 15:35:13.924991725 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14385,7 +14385,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-def remove_weight_norm(module: T_module, name: str = ...) -> T_module: ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/onnx/symbolic_opset9.py pytorch-develop-150/torch/onnx/symbolic_opset9.py
--- pytorch-v1.5.0/torch/onnx/symbolic_opset9.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/onnx/symbolic_opset9.py 2021-12-01 12:00:37.962966735 +0800
+++ pytorch-develop-150/torch/onnx/symbolic_opset9.py 2021-12-05 15:35:13.924991725 +0800
@@ -1621,14 +1621,23 @@
slices = [sym_help._slice_helper(g, w, axes=[0], starts=[x * n], ends=[y * n]) for x, y in intervals]
return g.op('Concat', *slices, axis_i=0)
@@ -14463,7 +14463,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
- def __init__(self, params: _params_t, lr: float=..., lr_decay: float=..., weight_decay: float=..., initial_accumulator_value: float=..., eps: float=...) -> None: ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/optim/adamax.py pytorch-develop-150/torch/optim/adamax.py
--- pytorch-v1.5.0/torch/optim/adamax.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/optim/adamax.py 2021-12-01 12:00:37.962966735 +0800
+++ pytorch-develop-150/torch/optim/adamax.py 2021-12-05 15:35:13.924991725 +0800
@@ -80,8 +80,8 @@
exp_inf.mul_(beta2).unsqueeze(0),
grad.abs().add_(eps).unsqueeze_(0)
@@ -14640,7 +14640,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
- def __init__(self, params: _params_t, lr: float=..., betas: Tuple[float, float]=..., eps: float=...) -> None: ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/serialization.py pytorch-develop-150/torch/serialization.py
--- pytorch-v1.5.0/torch/serialization.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/serialization.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/serialization.py 2021-12-05 15:35:13.928991602 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14724,7 +14724,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
def location_tag(storage):
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/storage.py pytorch-develop-150/torch/storage.py
--- pytorch-v1.5.0/torch/storage.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/storage.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/storage.py 2021-12-05 15:35:13.928991602 +0800
@@ -7,6 +7,7 @@
class _StorageBase(object):
@@ -14744,7 +14744,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
else:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/tensor.py pytorch-develop-150/torch/tensor.py
--- pytorch-v1.5.0/torch/tensor.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/tensor.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/tensor.py 2021-12-05 15:35:13.928991602 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14806,7 +14806,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
def __reversed__(self):
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/_tensor_str.py pytorch-develop-150/torch/_tensor_str.py
--- pytorch-v1.5.0/torch/_tensor_str.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/_tensor_str.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/_tensor_str.py 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14860,7 +14860,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
has_default_dtype = self.dtype in (torch.get_default_dtype(), torch.int64, torch.bool)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/utils/data/dataloader.py pytorch-develop-150/torch/utils/data/dataloader.py
--- pytorch-v1.5.0/torch/utils/data/dataloader.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/utils/data/dataloader.py 2021-12-01 12:00:37.962966735 +0800
+++ pytorch-develop-150/torch/utils/data/dataloader.py 2021-12-05 15:35:13.928991602 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -15069,7 +15069,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
- def __init__(self, sampler: Sampler[int], batch_size: int, drop_last: bool) -> None: ...
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/utils/data/_utils/pin_memory.py pytorch-develop-150/torch/utils/data/_utils/pin_memory.py
--- pytorch-v1.5.0/torch/utils/data/_utils/pin_memory.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/utils/data/_utils/pin_memory.py 2021-12-01 12:00:37.962966735 +0800
+++ pytorch-develop-150/torch/utils/data/_utils/pin_memory.py 2021-12-05 15:35:13.928991602 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -15130,7 +15130,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/utils/__init__.py pytorch-develop-150/torch/utils/__init__.py
--- pytorch-v1.5.0/torch/utils/__init__.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/utils/__init__.py 2021-12-01 12:00:37.962966735 +0800
+++ pytorch-develop-150/torch/utils/__init__.py 2021-12-05 15:35:13.928991602 +0800
@@ -1,6 +1,9 @@
from __future__ import absolute_import, division, print_function, unicode_literals
@@ -15143,7 +15143,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
def set_module(obj, mod):
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.5.0/torch/_utils.py pytorch-develop-150/torch/_utils.py
--- pytorch-v1.5.0/torch/_utils.py 2021-04-10 18:39:32.000000000 +0800
+++ pytorch-develop-150/torch/_utils.py 2021-12-01 12:00:37.934966583 +0800
+++ pytorch-develop-150/torch/_utils.py 2021-12-05 15:35:13.896992588 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
+91 -91
View File
@@ -1,6 +1,6 @@
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/CMakeLists.txt pytorch-develop-181/aten/CMakeLists.txt
--- pytorch-v1.8.1/aten/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/CMakeLists.txt 2021-12-01 12:00:42.098989233 +0800
+++ pytorch-develop-181/aten/CMakeLists.txt 2021-12-05 15:35:20.660785574 +0800
@@ -22,9 +22,11 @@
set(ATen_CPU_INCLUDE)
set(ATen_THIRD_PARTY_INCLUDE)
@@ -52,7 +52,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(ATen_CPU_DEPENDENCY_LIBS ${ATen_CPU_DEPENDENCY_LIBS} PARENT_SCOPE)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/CMakeLists.txt pytorch-develop-181/aten/src/ATen/CMakeLists.txt
--- pytorch-v1.8.1/aten/src/ATen/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/CMakeLists.txt 2021-12-01 12:00:42.102989254 +0800
+++ pytorch-develop-181/aten/src/ATen/CMakeLists.txt 2021-12-05 15:35:20.664785452 +0800
@@ -85,6 +85,10 @@
file(GLOB native_quantized_h "native/quantized/*.h" "native/quantized/cpu/*.h")
file(GLOB native_cpu_h "native/cpu/*.h")
@@ -103,7 +103,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(ATen_HIP_SRCS ${ATen_HIP_SRCS} PARENT_SCOPE)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/core/dispatch/Dispatcher.h pytorch-develop-181/aten/src/ATen/core/dispatch/Dispatcher.h
--- pytorch-v1.8.1/aten/src/ATen/core/dispatch/Dispatcher.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/Dispatcher.h 2021-12-01 12:00:42.110989298 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/Dispatcher.h 2021-12-05 15:35:20.672785209 +0800
@@ -417,6 +417,11 @@
}
}
@@ -118,7 +118,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/core/dispatch/ObservedOperators.cpp pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.cpp
--- pytorch-v1.8.1/aten/src/ATen/core/dispatch/ObservedOperators.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.cpp 2021-12-01 12:00:42.110989298 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.cpp 2021-12-05 15:35:20.672785209 +0800
@@ -6,6 +6,7 @@
namespace c10 {
@@ -129,7 +129,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
std::unordered_set<std::string> not_observed_ops = {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/core/dispatch/ObservedOperators.h pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.h
--- pytorch-v1.8.1/aten/src/ATen/core/dispatch/ObservedOperators.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.h 2021-12-01 12:00:42.110989298 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.h 2021-12-05 15:35:20.672785209 +0800
@@ -1,12 +1,16 @@
#pragma once
@@ -149,7 +149,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/core/dispatch/OperatorEntry.h pytorch-develop-181/aten/src/ATen/core/dispatch/OperatorEntry.h
--- pytorch-v1.8.1/aten/src/ATen/core/dispatch/OperatorEntry.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/OperatorEntry.h 2021-12-01 12:00:42.110989298 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/OperatorEntry.h 2021-12-05 15:35:20.672785209 +0800
@@ -10,6 +10,7 @@
#include <ATen/core/boxing/KernelFunction.h>
#include <ATen/core/dispatch/DispatchKeyExtractor.h>
@@ -160,7 +160,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
#include <ATen/core/dispatch/RegistrationHandleRAII.h>
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/core/VariableFallbackKernel.cpp pytorch-develop-181/aten/src/ATen/core/VariableFallbackKernel.cpp
--- pytorch-v1.8.1/aten/src/ATen/core/VariableFallbackKernel.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/core/VariableFallbackKernel.cpp 2021-12-01 12:00:42.106989276 +0800
+++ pytorch-develop-181/aten/src/ATen/core/VariableFallbackKernel.cpp 2021-12-05 15:35:20.668785331 +0800
@@ -48,4 +48,8 @@
m.fallback(torch::CppFunction::makeFallthrough());
}
@@ -172,7 +172,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/native/Convolution.cpp pytorch-develop-181/aten/src/ATen/native/Convolution.cpp
--- pytorch-v1.8.1/aten/src/ATen/native/Convolution.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/native/Convolution.cpp 2021-12-01 12:00:42.122989363 +0800
+++ pytorch-develop-181/aten/src/ATen/native/Convolution.cpp 2021-12-05 15:35:20.684784843 +0800
@@ -603,7 +603,9 @@
const Tensor& input, const Tensor& weight, const Tensor& bias,
IntArrayRef stride, IntArrayRef padding, IntArrayRef dilation,
@@ -186,7 +186,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
at::Tensor _convolution(
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/native/Memory.cpp pytorch-develop-181/aten/src/ATen/native/Memory.cpp
--- pytorch-v1.8.1/aten/src/ATen/native/Memory.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/native/Memory.cpp 2021-12-01 12:00:42.126989385 +0800
+++ pytorch-develop-181/aten/src/ATen/native/Memory.cpp 2021-12-05 15:35:20.688784722 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -237,7 +237,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
detail::computeStorageNbytes(
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/native/native_functions.yaml pytorch-develop-181/aten/src/ATen/native/native_functions.yaml
--- pytorch-v1.8.1/aten/src/ATen/native/native_functions.yaml 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/native/native_functions.yaml 2021-12-01 12:00:42.158989559 +0800
+++ pytorch-develop-181/aten/src/ATen/native/native_functions.yaml 2021-12-05 15:35:20.720783748 +0800
@@ -2073,6 +2073,8 @@
dispatch:
CPU, CUDA: isnan
@@ -477,7 +477,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+- func: npu_apply_adam.out(Scalar beta1_power, Scalar beta2_power, Scalar lr, Scalar beta1, Scalar beta2, Scalar epsilon, Tensor grad, bool? use_locking, bool? use_nesterov, *, Tensor(a!) var, Tensor(b!) m, Tensor(c!) v) -> (Tensor(a!), Tensor(b!), Tensor(c!))
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/native/NPUVariableMethodStubs.cpp pytorch-develop-181/aten/src/ATen/native/NPUVariableMethodStubs.cpp
--- pytorch-v1.8.1/aten/src/ATen/native/NPUVariableMethodStubs.cpp 1970-01-01 08:00:00.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/native/NPUVariableMethodStubs.cpp 2021-12-01 12:00:42.126989385 +0800
+++ pytorch-develop-181/aten/src/ATen/native/NPUVariableMethodStubs.cpp 2021-12-05 15:35:20.688784722 +0800
@@ -0,0 +1,464 @@
+#include "ATen/native/npu/common/FormatCastHelper.h"
+#include "ATen/native/npu/frame/FormatHelper.h"
@@ -1861,7 +1861,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/native/TensorFactories.cpp pytorch-develop-181/aten/src/ATen/native/TensorFactories.cpp
--- pytorch-v1.8.1/aten/src/ATen/native/TensorFactories.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/native/TensorFactories.cpp 2021-12-01 12:00:42.138989450 +0800
+++ pytorch-develop-181/aten/src/ATen/native/TensorFactories.cpp 2021-12-05 15:35:20.700784356 +0800
@@ -1,3 +1,20 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -1894,7 +1894,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
namespace {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/native/vulkan/api/vk_mem_alloc.h pytorch-develop-181/aten/src/ATen/native/vulkan/api/vk_mem_alloc.h
--- pytorch-v1.8.1/aten/src/ATen/native/vulkan/api/vk_mem_alloc.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/native/vulkan/api/vk_mem_alloc.h 2021-12-01 12:00:42.194989755 +0800
+++ pytorch-develop-181/aten/src/ATen/native/vulkan/api/vk_mem_alloc.h 2021-12-05 15:35:20.756782653 +0800
@@ -1,19229 +1,19229 @@
-//
-// Copyright (c) 2017-2020 Advanced Micro Devices, Inc. All rights reserved.
@@ -40356,7 +40356,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+#endif // #ifdef VMA_IMPLEMENTATION
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/record_function.cpp pytorch-develop-181/aten/src/ATen/record_function.cpp
--- pytorch-v1.8.1/aten/src/ATen/record_function.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/record_function.cpp 2021-12-01 12:00:42.194989755 +0800
+++ pytorch-develop-181/aten/src/ATen/record_function.cpp 2021-12-05 15:35:20.760782531 +0800
@@ -400,6 +400,9 @@
rf_tls_.tls_record_function_enabled_ = enable;
}
@@ -40369,7 +40369,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if (rf_tls_ptr->tls_record_function_enabled_) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/record_function.h pytorch-develop-181/aten/src/ATen/record_function.h
--- pytorch-v1.8.1/aten/src/ATen/record_function.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/record_function.h 2021-12-01 12:00:42.194989755 +0800
+++ pytorch-develop-181/aten/src/ATen/record_function.h 2021-12-05 15:35:20.760782531 +0800
@@ -2,6 +2,7 @@
#include <ATen/core/ivalue.h>
@@ -40405,7 +40405,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
// scope - record scope that this function tracks
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/templates/TensorBody.h pytorch-develop-181/aten/src/ATen/templates/TensorBody.h
--- pytorch-v1.8.1/aten/src/ATen/templates/TensorBody.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/templates/TensorBody.h 2021-12-01 12:00:42.198989776 +0800
+++ pytorch-develop-181/aten/src/ATen/templates/TensorBody.h 2021-12-05 15:35:20.760782531 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40438,7 +40438,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
bool is_xpu() const;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/templates/TensorMethods.cpp pytorch-develop-181/aten/src/ATen/templates/TensorMethods.cpp
--- pytorch-v1.8.1/aten/src/ATen/templates/TensorMethods.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/templates/TensorMethods.cpp 2021-12-01 12:00:42.198989776 +0800
+++ pytorch-develop-181/aten/src/ATen/templates/TensorMethods.cpp 2021-12-05 15:35:20.760782531 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40483,7 +40483,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/ATen/Utils.cpp pytorch-develop-181/aten/src/ATen/Utils.cpp
--- pytorch-v1.8.1/aten/src/ATen/Utils.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/ATen/Utils.cpp 2021-12-01 12:00:42.106989276 +0800
+++ pytorch-develop-181/aten/src/ATen/Utils.cpp 2021-12-05 15:35:20.668785331 +0800
@@ -1,3 +1,18 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40527,7 +40527,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/TH/generic/THStorage.cpp pytorch-develop-181/aten/src/TH/generic/THStorage.cpp
--- pytorch-v1.8.1/aten/src/TH/generic/THStorage.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/TH/generic/THStorage.cpp 2021-12-01 12:00:42.202989798 +0800
+++ pytorch-develop-181/aten/src/TH/generic/THStorage.cpp 2021-12-05 15:35:20.764782409 +0800
@@ -1,9 +1,32 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40640,7 +40640,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/aten/src/TH/generic/THStorage.h pytorch-develop-181/aten/src/TH/generic/THStorage.h
--- pytorch-v1.8.1/aten/src/TH/generic/THStorage.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/aten/src/TH/generic/THStorage.h 2021-12-01 12:00:42.202989798 +0800
+++ pytorch-develop-181/aten/src/TH/generic/THStorage.h 2021-12-05 15:35:20.764782409 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40679,7 +40679,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/CMakeLists.txt pytorch-develop-181/c10/CMakeLists.txt
--- pytorch-v1.8.1/c10/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/CMakeLists.txt 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/CMakeLists.txt 2021-12-05 15:35:20.776782045 +0800
@@ -79,6 +79,14 @@
message(STATUS "don't use NUMA")
endif()
@@ -40708,7 +40708,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# not checked in
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/Backend.h pytorch-develop-181/c10/core/Backend.h
--- pytorch-v1.8.1/c10/core/Backend.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/Backend.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/Backend.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40802,7 +40802,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/Device.cpp pytorch-develop-181/c10/core/Device.cpp
--- pytorch-v1.8.1/c10/core/Device.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/Device.cpp 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/Device.cpp 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40833,7 +40833,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
types.begin(),
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/Device.h pytorch-develop-181/c10/core/Device.h
--- pytorch-v1.8.1/c10/core/Device.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/Device.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/Device.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40868,7 +40868,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
bool is_cpu() const noexcept {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/DeviceType.cpp pytorch-develop-181/c10/core/DeviceType.cpp
--- pytorch-v1.8.1/c10/core/DeviceType.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/DeviceType.cpp 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/DeviceType.cpp 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40908,7 +40908,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return false;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/DeviceType.h pytorch-develop-181/c10/core/DeviceType.h
--- pytorch-v1.8.1/c10/core/DeviceType.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/DeviceType.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/DeviceType.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40950,7 +40950,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
constexpr DeviceType kMSNPU = DeviceType::MSNPU;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/DispatchKey.cpp pytorch-develop-181/c10/core/DispatchKey.cpp
--- pytorch-v1.8.1/c10/core/DispatchKey.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/DispatchKey.cpp 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/DispatchKey.cpp 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,18 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40999,7 +40999,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
case DispatchKey::PrivateUse1:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/DispatchKey.h pytorch-develop-181/c10/core/DispatchKey.h
--- pytorch-v1.8.1/c10/core/DispatchKey.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/DispatchKey.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/DispatchKey.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41046,7 +41046,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
PrivateUse3_PreAutograd = AutogradPrivateUse3,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/DispatchKeySet.cpp pytorch-develop-181/c10/core/DispatchKeySet.cpp
--- pytorch-v1.8.1/c10/core/DispatchKeySet.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/DispatchKeySet.cpp 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/DispatchKeySet.cpp 2021-12-05 15:35:20.780781922 +0800
@@ -11,6 +11,7 @@
DispatchKey::XLA,
DispatchKey::NestedTensor,
@@ -41066,7 +41066,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
case DispatchKey::AutogradXPU:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/DispatchKeySet.h pytorch-develop-181/c10/core/DispatchKeySet.h
--- pytorch-v1.8.1/c10/core/DispatchKeySet.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/DispatchKeySet.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/DispatchKeySet.h 2021-12-05 15:35:20.780781922 +0800
@@ -193,6 +193,7 @@
DispatchKey::AutogradCPU,
DispatchKey::AutogradCUDA,
@@ -41077,7 +41077,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
DispatchKey::AutogradPrivateUse1,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/Storage.h pytorch-develop-181/c10/core/Storage.h
--- pytorch-v1.8.1/c10/core/Storage.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/Storage.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/Storage.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41111,7 +41111,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
};
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/StorageImpl.h pytorch-develop-181/c10/core/StorageImpl.h
--- pytorch-v1.8.1/c10/core/StorageImpl.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/StorageImpl.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/StorageImpl.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,12 +1,42 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41171,7 +41171,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/TensorImpl.h pytorch-develop-181/c10/core/TensorImpl.h
--- pytorch-v1.8.1/c10/core/TensorImpl.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/TensorImpl.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/TensorImpl.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41214,7 +41214,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return ts.has(DispatchKey::SparseCPU) ||
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/core/TensorOptions.h pytorch-develop-181/c10/core/TensorOptions.h
--- pytorch-v1.8.1/c10/core/TensorOptions.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/core/TensorOptions.h 2021-12-01 12:00:42.214989863 +0800
+++ pytorch-develop-181/c10/core/TensorOptions.h 2021-12-05 15:35:20.780781922 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41255,7 +41255,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
} else if (tid == DispatchKey::QuantizedXPU) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/c10/macros/Export.h pytorch-develop-181/c10/macros/Export.h
--- pytorch-v1.8.1/c10/macros/Export.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/c10/macros/Export.h 2021-12-01 12:00:42.218989885 +0800
+++ pytorch-develop-181/c10/macros/Export.h 2021-12-05 15:35:20.784781801 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41324,7 +41324,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
#define C10_API_ENUM C10_API
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/caffe2/CMakeLists.txt pytorch-develop-181/caffe2/CMakeLists.txt
--- pytorch-v1.8.1/caffe2/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/caffe2/CMakeLists.txt 2021-12-01 12:00:42.222989907 +0800
+++ pytorch-develop-181/caffe2/CMakeLists.txt 2021-12-05 15:35:20.788781680 +0800
@@ -76,6 +76,7 @@
# Add source, includes, and libs to lists
list(APPEND Caffe2_CPU_SRCS ${ATen_CPU_SRCS})
@@ -41449,7 +41449,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# Call again since Caffe2_HIP_INCLUDE is extended with ATen include dirs.
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/cmake/BuildVariables.cmake pytorch-develop-181/cmake/BuildVariables.cmake
--- pytorch-v1.8.1/cmake/BuildVariables.cmake 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/cmake/BuildVariables.cmake 2021-12-01 12:00:42.298990320 +0800
+++ pytorch-develop-181/cmake/BuildVariables.cmake 2021-12-05 15:35:20.864779366 +0800
@@ -11,6 +11,7 @@
# CMakeLists.txt files under each folder respectively.
set(Caffe2_CPU_SRCS)
@@ -41473,7 +41473,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# symbols. However, if the lib is whole linked in caffe2 lib, we don't want
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/cmake/Codegen.cmake pytorch-develop-181/cmake/Codegen.cmake
--- pytorch-v1.8.1/cmake/Codegen.cmake 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/cmake/Codegen.cmake 2021-12-01 12:00:42.298990320 +0800
+++ pytorch-develop-181/cmake/Codegen.cmake 2021-12-05 15:35:20.864779366 +0800
@@ -208,13 +208,14 @@
file(READ ${CMAKE_BINARY_DIR}/aten/src/ATen/generated_cpp.txt generated_cpp)
file(READ ${CMAKE_BINARY_DIR}/aten/src/ATen/generated_cpp.txt-cuda cuda_generated_cpp)
@@ -41506,7 +41506,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
function(append_filelist name outputvar)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/cmake/Dependencies.cmake pytorch-develop-181/cmake/Dependencies.cmake
--- pytorch-v1.8.1/cmake/Dependencies.cmake 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/cmake/Dependencies.cmake 2021-12-01 12:00:42.298990320 +0800
+++ pytorch-develop-181/cmake/Dependencies.cmake 2021-12-05 15:35:20.868779245 +0800
@@ -1771,6 +1771,13 @@
endif(NOT C_HAS_THREAD)
endif()
@@ -41523,7 +41523,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
#
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/cmake/Summary.cmake pytorch-develop-181/cmake/Summary.cmake
--- pytorch-v1.8.1/cmake/Summary.cmake 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/cmake/Summary.cmake 2021-12-01 12:00:42.298990320 +0800
+++ pytorch-develop-181/cmake/Summary.cmake 2021-12-05 15:35:20.868779245 +0800
@@ -127,6 +127,7 @@
message(STATUS " USE_MKLDNN_CBLAS : ${USE_MKLDNN_CBLAS}")
endif()
@@ -41542,7 +41542,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
message(STATUS " Private Dependencies : ${Caffe2_DEPENDENCY_LIBS}")
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/cmake/TorchConfig.cmake.in pytorch-develop-181/cmake/TorchConfig.cmake.in
--- pytorch-v1.8.1/cmake/TorchConfig.cmake.in 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/cmake/TorchConfig.cmake.in 2021-12-01 12:00:42.298990320 +0800
+++ pytorch-develop-181/cmake/TorchConfig.cmake.in 2021-12-05 15:35:20.868779245 +0800
@@ -158,6 +158,11 @@
list(APPEND TORCH_LIBRARIES ${TORCH_CUDA_LIBRARIES})
endif()
@@ -41557,7 +41557,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=@GLIBCXX_USE_CXX11_ABI@")
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/CMakeLists.txt pytorch-develop-181/CMakeLists.txt
--- pytorch-v1.8.1/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/CMakeLists.txt 2021-12-01 12:00:42.090989189 +0800
+++ pytorch-develop-181/CMakeLists.txt 2021-12-05 15:35:20.652785817 +0800
@@ -261,6 +261,10 @@
"USE_DISTRIBUTED" OFF)
option(USE_TBB "Use TBB" OFF)
@@ -41601,7 +41601,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if(APPLE)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/setup.py pytorch-develop-181/setup.py
--- pytorch-v1.8.1/setup.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/setup.py 2021-12-01 12:00:42.314990408 +0800
+++ pytorch-develop-181/setup.py 2021-12-05 15:35:20.880778879 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -41670,7 +41670,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
'utils/benchmark/utils/valgrind_wrapper/*.h',
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/autograd/derivatives.yaml pytorch-develop-181/tools/autograd/derivatives.yaml
--- pytorch-v1.8.1/tools/autograd/derivatives.yaml 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/autograd/derivatives.yaml 2021-12-01 12:00:42.802993062 +0800
+++ pytorch-develop-181/tools/autograd/derivatives.yaml 2021-12-05 15:35:21.356764415 +0800
@@ -1976,3 +1976,7 @@
- name: nonzero(Tensor self) -> Tensor
@@ -41681,7 +41681,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
+ mat2: npu_bmm_v2_mat2_backward(grad, self, mat2, mat2.sizes())
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/autograd/gen_python_functions.py pytorch-develop-181/tools/autograd/gen_python_functions.py
--- pytorch-v1.8.1/tools/autograd/gen_python_functions.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/autograd/gen_python_functions.py 2021-12-01 12:00:42.802993062 +0800
+++ pytorch-develop-181/tools/autograd/gen_python_functions.py 2021-12-05 15:35:21.356764415 +0800
@@ -1,3 +1,20 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -41705,7 +41705,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# The bindings are generated as methods on python_variable or functions on the
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/autograd/templates/Functions.cpp pytorch-develop-181/tools/autograd/templates/Functions.cpp
--- pytorch-v1.8.1/tools/autograd/templates/Functions.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/autograd/templates/Functions.cpp 2021-12-01 12:00:42.802993062 +0800
+++ pytorch-develop-181/tools/autograd/templates/Functions.cpp 2021-12-05 15:35:21.356764415 +0800
@@ -14,6 +14,35 @@
namespace torch { namespace autograd { namespace generated {
@@ -41744,7 +41744,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}}} // namespace torch::autograd::generated
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/autograd/templates/python_torch_functions.cpp pytorch-develop-181/tools/autograd/templates/python_torch_functions.cpp
--- pytorch-v1.8.1/tools/autograd/templates/python_torch_functions.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/autograd/templates/python_torch_functions.cpp 2021-12-01 12:00:42.802993062 +0800
+++ pytorch-develop-181/tools/autograd/templates/python_torch_functions.cpp 2021-12-05 15:35:21.356764415 +0800
@@ -30,7 +30,7 @@
#include "torch/csrc/autograd/generated/variable_factories.h"
#include "torch/csrc/utils/structseq.h"
@@ -41780,7 +41780,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return torch::range(start, end, step, options);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/autograd/templates/python_variable_methods.cpp pytorch-develop-181/tools/autograd/templates/python_variable_methods.cpp
--- pytorch-v1.8.1/tools/autograd/templates/python_variable_methods.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/autograd/templates/python_variable_methods.cpp 2021-12-01 12:00:42.802993062 +0800
+++ pytorch-develop-181/tools/autograd/templates/python_variable_methods.cpp 2021-12-05 15:35:21.356764415 +0800
@@ -20,7 +20,13 @@
#ifdef USE_CUDA
#include "torch/csrc/cuda/Event.h"
@@ -41848,7 +41848,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
{"has_names", THPVariable_has_names, METH_NOARGS, NULL},
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/build_variables.bzl pytorch-develop-181/tools/build_variables.bzl
--- pytorch-v1.8.1/tools/build_variables.bzl 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/build_variables.bzl 2021-12-01 12:00:42.802993062 +0800
+++ pytorch-develop-181/tools/build_variables.bzl 2021-12-05 15:35:21.356764415 +0800
@@ -362,6 +362,7 @@
libtorch_cuda_core_sources = [
"torch/csrc/CudaIPCTypes.cpp",
@@ -41867,7 +41867,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
"torch/csrc/utils/python_arg_parser.cpp",
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/codegen/gen.py pytorch-develop-181/tools/codegen/gen.py
--- pytorch-v1.8.1/tools/codegen/gen.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/codegen/gen.py 2021-12-01 12:00:42.806993083 +0800
+++ pytorch-develop-181/tools/codegen/gen.py 2021-12-05 15:35:21.360764294 +0800
@@ -815,7 +815,7 @@
core_fm = make_file_manager(core_install_dir)
cpu_fm = make_file_manager(options.install_dir)
@@ -41915,7 +41915,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
main()
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/tools/codegen/model.py pytorch-develop-181/tools/codegen/model.py
--- pytorch-v1.8.1/tools/codegen/model.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/tools/codegen/model.py 2021-12-01 12:00:42.806993083 +0800
+++ pytorch-develop-181/tools/codegen/model.py 2021-12-05 15:35:21.360764294 +0800
@@ -79,6 +79,7 @@
SparseHIP = auto()
SparseXPU = auto()
@@ -42057,7 +42057,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
-)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/autograd/profiler.py pytorch-develop-181/torch/autograd/profiler.py
--- pytorch-v1.8.1/torch/autograd/profiler.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/autograd/profiler.py 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/autograd/profiler.py 2021-12-05 15:35:21.364764172 +0800
@@ -37,14 +37,17 @@
class EventList(list):
"""A list of Events (for pretty printing)"""
@@ -42736,7 +42736,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return ''.join(result)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/_C/_autograd.pyi pytorch-develop-181/torch/_C/_autograd.pyi
--- pytorch-v1.8.1/torch/_C/_autograd.pyi 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/_C/_autograd.pyi 2021-12-01 12:00:42.806993083 +0800
+++ pytorch-develop-181/torch/_C/_autograd.pyi 2021-12-05 15:35:21.360764294 +0800
@@ -9,14 +9,17 @@
CUDA = ...
NVTX = ...
@@ -42757,7 +42757,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
class ProfilerConfig:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/CMakeLists.txt pytorch-develop-181/torch/CMakeLists.txt
--- pytorch-v1.8.1/torch/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/CMakeLists.txt 2021-12-01 12:00:42.806993083 +0800
+++ pytorch-develop-181/torch/CMakeLists.txt 2021-12-05 15:35:21.360764294 +0800
@@ -131,6 +131,20 @@
endif()
@@ -42781,7 +42781,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
list(APPEND TORCH_PYTHON_SRCS ${GENERATED_THNN_CXX_CUDA})
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/engine.cpp pytorch-develop-181/torch/csrc/autograd/engine.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/engine.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/engine.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/engine.cpp 2021-12-05 15:35:21.368764051 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -42878,7 +42878,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
auto outputs = call_function(graph_task, func, inputs);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/functions/tensor.cpp pytorch-develop-181/torch/csrc/autograd/functions/tensor.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/functions/tensor.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/functions/tensor.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/functions/tensor.cpp 2021-12-05 15:35:21.368764051 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -42910,7 +42910,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
/*non_blocking=*/false,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/init.cpp pytorch-develop-181/torch/csrc/autograd/init.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/init.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/init.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/init.cpp 2021-12-05 15:35:21.368764051 +0800
@@ -52,6 +52,7 @@
.value("Disabled", ProfilerState::Disabled)
.value("CPU", ProfilerState::CPU)
@@ -42953,7 +42953,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
.value("OPENCL", c10::DeviceType::OPENCL)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/input_buffer.cpp pytorch-develop-181/torch/csrc/autograd/input_buffer.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/input_buffer.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/input_buffer.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/input_buffer.cpp 2021-12-05 15:35:21.368764051 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43005,7 +43005,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
auto& old_var = buffer[pos];
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/profiler_legacy.cpp pytorch-develop-181/torch/csrc/autograd/profiler_legacy.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/profiler_legacy.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/profiler_legacy.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/profiler_legacy.cpp 2021-12-05 15:35:21.372763929 +0800
@@ -147,7 +147,7 @@
constexpr const CUDAStubs* default_stubs_addr = &default_stubs;
// Constant initialization, so it is guaranteed to be initialized before
@@ -43248,7 +43248,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
CUDAStubs::~CUDAStubs() = default;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/profiler_legacy.h pytorch-develop-181/torch/csrc/autograd/profiler_legacy.h
--- pytorch-v1.8.1/torch/csrc/autograd/profiler_legacy.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/profiler_legacy.h 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/profiler_legacy.h 2021-12-05 15:35:21.372763929 +0800
@@ -19,6 +19,8 @@
#include <sys/time.h> // for gettimeofday()
#endif
@@ -43437,7 +43437,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
std::vector<LegacyEvent>&& remoteProfiledEvents);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/python_variable.cpp pytorch-develop-181/torch/csrc/autograd/python_variable.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/python_variable.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/python_variable.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/python_variable.cpp 2021-12-05 15:35:21.372763929 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43491,7 +43491,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
{"is_mkldnn", (getter)THPVariable_is_mkldnn, nullptr, nullptr, nullptr},
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/autograd/python_variable_indexing.cpp pytorch-develop-181/torch/csrc/autograd/python_variable_indexing.cpp
--- pytorch-v1.8.1/torch/csrc/autograd/python_variable_indexing.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/autograd/python_variable_indexing.cpp 2021-12-01 12:00:42.818993149 +0800
+++ pytorch-develop-181/torch/csrc/autograd/python_variable_indexing.cpp 2021-12-05 15:35:21.372763929 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43524,7 +43524,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/distributed/c10d/init.cpp pytorch-develop-181/torch/csrc/distributed/c10d/init.cpp
--- pytorch-v1.8.1/torch/csrc/distributed/c10d/init.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/distributed/c10d/init.cpp 2021-12-01 12:00:42.822993171 +0800
+++ pytorch-develop-181/torch/csrc/distributed/c10d/init.cpp 2021-12-05 15:35:21.372763929 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43691,7 +43691,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
torch::class_<::c10d::DistributedC10d>("dist_c10d", "frontend")
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/DynamicTypes.cpp pytorch-develop-181/torch/csrc/DynamicTypes.cpp
--- pytorch-v1.8.1/torch/csrc/DynamicTypes.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/DynamicTypes.cpp 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/csrc/DynamicTypes.cpp 2021-12-05 15:35:21.364764172 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43740,7 +43740,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return it->second;
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/Generator.cpp pytorch-develop-181/torch/csrc/Generator.cpp
--- pytorch-v1.8.1/torch/csrc/Generator.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/Generator.cpp 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/csrc/Generator.cpp 2021-12-05 15:35:21.364764172 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43787,7 +43787,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
" is not supported for torch.Generator() api.");
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/generic/serialization.cpp pytorch-develop-181/torch/csrc/generic/serialization.cpp
--- pytorch-v1.8.1/torch/csrc/generic/serialization.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/generic/serialization.cpp 2021-12-01 12:00:42.826993192 +0800
+++ pytorch-develop-181/torch/csrc/generic/serialization.cpp 2021-12-05 15:35:21.376763808 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43885,7 +43885,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/generic/Storage.cpp pytorch-develop-181/torch/csrc/generic/Storage.cpp
--- pytorch-v1.8.1/torch/csrc/generic/Storage.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/generic/Storage.cpp 2021-12-01 12:00:42.826993192 +0800
+++ pytorch-develop-181/torch/csrc/generic/Storage.cpp 2021-12-05 15:35:21.376763808 +0800
@@ -1,7 +1,25 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43965,7 +43965,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
for (Py_ssize_t i = 0; i < length; i++) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/generic/StorageMethods.cpp pytorch-develop-181/torch/csrc/generic/StorageMethods.cpp
--- pytorch-v1.8.1/torch/csrc/generic/StorageMethods.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/generic/StorageMethods.cpp 2021-12-01 12:00:42.826993192 +0800
+++ pytorch-develop-181/torch/csrc/generic/StorageMethods.cpp 2021-12-05 15:35:21.376763808 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44045,7 +44045,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
};
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/Module.cpp pytorch-develop-181/torch/csrc/Module.cpp
--- pytorch-v1.8.1/torch/csrc/Module.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/Module.cpp 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/csrc/Module.cpp 2021-12-05 15:35:21.364764172 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44171,7 +44171,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if (incref) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/tensor/python_tensor.cpp pytorch-develop-181/torch/csrc/tensor/python_tensor.cpp
--- pytorch-v1.8.1/torch/csrc/tensor/python_tensor.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/tensor/python_tensor.cpp 2021-12-01 12:00:42.854993345 +0800
+++ pytorch-develop-181/torch/csrc/tensor/python_tensor.cpp 2021-12-05 15:35:21.404762958 +0800
@@ -1,3 +1,18 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44209,7 +44209,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/utils/python_arg_parser.h pytorch-develop-181/torch/csrc/utils/python_arg_parser.h
--- pytorch-v1.8.1/torch/csrc/utils/python_arg_parser.h 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/utils/python_arg_parser.h 2021-12-01 12:00:42.854993345 +0800
+++ pytorch-develop-181/torch/csrc/utils/python_arg_parser.h 2021-12-05 15:35:21.404762958 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44244,7 +44244,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return at::Device(device_str);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/utils/tensor_layouts.cpp pytorch-develop-181/torch/csrc/utils/tensor_layouts.cpp
--- pytorch-v1.8.1/torch/csrc/utils/tensor_layouts.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_layouts.cpp 2021-12-01 12:00:42.854993345 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_layouts.cpp 2021-12-05 15:35:21.404762958 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44275,7 +44275,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
PyObject *sparse_coo_layout = THPLayout_New(at::Layout::Sparse, "torch.sparse_coo");
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/utils/tensor_new.cpp pytorch-develop-181/torch/csrc/utils/tensor_new.cpp
--- pytorch-v1.8.1/torch/csrc/utils/tensor_new.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_new.cpp 2021-12-01 12:00:42.858993366 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_new.cpp 2021-12-05 15:35:21.404762958 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44407,7 +44407,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
dispatch_key);
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/csrc/utils/tensor_types.cpp pytorch-develop-181/torch/csrc/utils/tensor_types.cpp
--- pytorch-v1.8.1/torch/csrc/utils/tensor_types.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_types.cpp 2021-12-01 12:00:42.858993366 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_types.cpp 2021-12-05 15:35:21.404762958 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44457,7 +44457,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/distributed/distributed_c10d.py pytorch-develop-181/torch/distributed/distributed_c10d.py
--- pytorch-v1.8.1/torch/distributed/distributed_c10d.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/distributed/distributed_c10d.py 2021-12-01 12:00:42.858993366 +0800
+++ pytorch-develop-181/torch/distributed/distributed_c10d.py 2021-12-05 15:35:21.404762958 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -44548,7 +44548,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
prefix_store,
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/__init__.py pytorch-develop-181/torch/__init__.py
--- pytorch-v1.8.1/torch/__init__.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/__init__.py 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/__init__.py 2021-12-05 15:35:21.360764294 +0800
@@ -675,3 +675,11 @@
# class usage. We add these lines here to preserve backward compatibility.
quantized_lstm = torch.ops.aten.quantized_lstm
@@ -44564,7 +44564,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
\ No newline at end of file
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/lib/c10d/CMakeLists.txt pytorch-develop-181/torch/lib/c10d/CMakeLists.txt
--- pytorch-v1.8.1/torch/lib/c10d/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/lib/c10d/CMakeLists.txt 2021-12-01 12:00:42.866993410 +0800
+++ pytorch-develop-181/torch/lib/c10d/CMakeLists.txt 2021-12-05 15:35:21.412762715 +0800
@@ -27,6 +27,10 @@
option(USE_C10D_NCCL "USE C10D NCCL" ON)
endif()
@@ -44617,7 +44617,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
copy_header(ProcessGroupMPI.hpp)
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/lib/c10d/comm.cpp pytorch-develop-181/torch/lib/c10d/comm.cpp
--- pytorch-v1.8.1/torch/lib/c10d/comm.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/lib/c10d/comm.cpp 2021-12-01 12:00:42.866993410 +0800
+++ pytorch-develop-181/torch/lib/c10d/comm.cpp 2021-12-05 15:35:21.412762715 +0800
@@ -12,6 +12,26 @@
class BroadcastWork {
@@ -44706,7 +44706,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
while (!in_flight.empty()) {
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/lib/c10d/reducer.cpp pytorch-develop-181/torch/lib/c10d/reducer.cpp
--- pytorch-v1.8.1/torch/lib/c10d/reducer.cpp 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/lib/c10d/reducer.cpp 2021-12-01 12:00:42.866993410 +0800
+++ pytorch-develop-181/torch/lib/c10d/reducer.cpp 2021-12-05 15:35:21.416762593 +0800
@@ -18,6 +18,18 @@
namespace c10d {
namespace {
@@ -44898,7 +44898,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
// A bucket with one or more dense tensors needs to be unflattened.
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/lib/libshm/CMakeLists.txt pytorch-develop-181/torch/lib/libshm/CMakeLists.txt
--- pytorch-v1.8.1/torch/lib/libshm/CMakeLists.txt 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/lib/libshm/CMakeLists.txt 2021-12-01 12:00:42.870993431 +0800
+++ pytorch-develop-181/torch/lib/libshm/CMakeLists.txt 2021-12-05 15:35:21.416762593 +0800
@@ -41,8 +41,11 @@
set_target_properties(shm PROPERTIES
PREFIX "lib"
@@ -44914,7 +44914,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# https://github.com/libgit2/libgit2/issues/2128#issuecomment-35649830
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/nn/modules/batchnorm.py pytorch-develop-181/torch/nn/modules/batchnorm.py
--- pytorch-v1.8.1/torch/nn/modules/batchnorm.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/nn/modules/batchnorm.py 2021-12-01 12:00:42.870993431 +0800
+++ pytorch-develop-181/torch/nn/modules/batchnorm.py 2021-12-05 15:35:21.416762593 +0800
@@ -1,3 +1,18 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -44936,7 +44936,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
from ._functions import SyncBatchNorm as sync_batch_norm
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/nn/modules/module.py pytorch-develop-181/torch/nn/modules/module.py
--- pytorch-v1.8.1/torch/nn/modules/module.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/nn/modules/module.py 2021-12-01 12:00:42.874993453 +0800
+++ pytorch-develop-181/torch/nn/modules/module.py 2021-12-05 15:35:21.416762593 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45062,7 +45062,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if convert_to_format is not None and t.dim() == 4:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/nn/modules/normalization.py pytorch-develop-181/torch/nn/modules/normalization.py
--- pytorch-v1.8.1/torch/nn/modules/normalization.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/nn/modules/normalization.py 2021-12-01 12:00:42.874993453 +0800
+++ pytorch-develop-181/torch/nn/modules/normalization.py 2021-12-05 15:35:21.416762593 +0800
@@ -167,8 +167,11 @@
init.zeros_(self.bias)
@@ -45079,7 +45079,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
return '{normalized_shape}, eps={eps}, ' \
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/nn/parallel/distributed.py pytorch-develop-181/torch/nn/parallel/distributed.py
--- pytorch-v1.8.1/torch/nn/parallel/distributed.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/nn/parallel/distributed.py 2021-12-01 12:00:42.874993453 +0800
+++ pytorch-develop-181/torch/nn/parallel/distributed.py 2021-12-05 15:35:21.420762472 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45111,7 +45111,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
output = self.module(*inputs[0], **kwargs[0])
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/serialization.py pytorch-develop-181/torch/serialization.py
--- pytorch-v1.8.1/torch/serialization.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/serialization.py 2021-12-01 12:00:42.882993496 +0800
+++ pytorch-develop-181/torch/serialization.py 2021-12-05 15:35:21.428762228 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45200,7 +45200,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
See also: `saving-loading-tensors`
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/storage.py pytorch-develop-181/torch/storage.py
--- pytorch-v1.8.1/torch/storage.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/storage.py 2021-12-01 12:00:42.882993496 +0800
+++ pytorch-develop-181/torch/storage.py 2021-12-05 15:35:21.428762228 +0800
@@ -8,6 +8,7 @@
class _StorageBase(object):
_cdata: Any
@@ -45220,7 +45220,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
else:
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/tensor.py pytorch-develop-181/torch/tensor.py
--- pytorch-v1.8.1/torch/tensor.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/tensor.py 2021-12-01 12:00:42.882993496 +0800
+++ pytorch-develop-181/torch/tensor.py 2021-12-05 15:35:21.428762228 +0800
@@ -1,3 +1,18 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45282,7 +45282,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
def __reversed__(self):
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/_tensor_str.py pytorch-develop-181/torch/_tensor_str.py
--- pytorch-v1.8.1/torch/_tensor_str.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/_tensor_str.py 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/_tensor_str.py 2021-12-05 15:35:21.364764172 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45326,7 +45326,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# TODO: add an API to map real -> complex dtypes
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/utils/data/dataloader.py pytorch-develop-181/torch/utils/data/dataloader.py
--- pytorch-v1.8.1/torch/utils/data/dataloader.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/utils/data/dataloader.py 2021-12-01 12:00:42.886993519 +0800
+++ pytorch-develop-181/torch/utils/data/dataloader.py 2021-12-05 15:35:21.432762107 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45387,7 +45387,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
pin_memory_thread.start()
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/utils/data/_utils/pin_memory.py pytorch-develop-181/torch/utils/data/_utils/pin_memory.py
--- pytorch-v1.8.1/torch/utils/data/_utils/pin_memory.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/utils/data/_utils/pin_memory.py 2021-12-01 12:00:38.910971892 +0800
+++ pytorch-develop-181/torch/utils/data/_utils/pin_memory.py 2021-12-05 15:35:14.872962562 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45433,7 +45433,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
# logic of this function.
diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=OWNERS' '--exclude=third_party' '--exclude=README*' -Nur pytorch-v1.8.1/torch/_utils.py pytorch-develop-181/torch/_utils.py
--- pytorch-v1.8.1/torch/_utils.py 2021-03-24 10:28:21.000000000 +0800
+++ pytorch-develop-181/torch/_utils.py 2021-12-01 12:00:42.810993106 +0800
+++ pytorch-develop-181/torch/_utils.py 2021-12-05 15:35:21.364764172 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -24,6 +24,7 @@ void ExecuteParas::Release() {
// if useDynamicCompile, this attr will be freed in dynamic compile.
if (!isCompiling) {
aclopDestroyAttr(attr);
attr = nullptr;
}
DestroyConstParams(constParams);
NPUStatus ret = DestroyAclParams(paras);
@@ -38,6 +39,7 @@ void ExecuteParas::DynamicRelease() {
if (!isCompiling) {
if (dynamicCompileAttr != nullptr) {
aclopDestroyAttr(dynamicCompileAttr);
dynamicCompileAttr = nullptr;
}
NPUStatus ret = DestroyDynamicAclParams(dynamicParam);
@@ -73,6 +75,7 @@ void ExecuteParas::CopyEx(ExecuteParas& other)
this->dynamicCompileAttr = other.dynamicCompileAttr;
this->dynamicRunAttr = other.dynamicRunAttr;
this->dynamicParam = other.dynamicParam;
this->isCompiling = other.isCompiling;
}
}
@@ -161,10 +161,12 @@ void OpDynamicCommandImpl::ReleaseDynamicSource(bool no_blocking) {
if (execDynamicParam.dynamicCompileAttrs.back() != nullptr) {
aclopDestroyAttr(execDynamicParam.dynamicCompileAttrs.back());
execDynamicParam.dynamicCompileAttrs.back() = nullptr;
}
if (execDynamicParam.dynamicRunAttrs.back() != nullptr) {
aclopDestroyAttr(execDynamicParam.dynamicRunAttrs.back());
execDynamicParam.dynamicRunAttrs.back() = nullptr;
}
}
@@ -327,6 +327,19 @@ void CopyFunc(void* dst, void* src, SmallVector<Storage, N>& needClearVec, uint3
}
void ReleaseFunc(void* ptr, c10::npu::ReleaseQueue& releaseQueue) {
auto queueParam = static_cast<QueueParas* >(ptr);
auto type = queueParam->paramType;
if (type == COMPILE_AND_EXECUTE) {
auto cur_paras = static_cast<ExecuteParas* >(queueParam->paramVal);
if (!cur_paras->opDynamicType.empty()) {
cur_paras->DynamicRelease();
cur_paras->opDynamicType = "";
}
cur_paras->Release();
}
}
void ReleaseFunc_(void* ptr, c10::npu::ReleaseQueue& releaseQueue) {
releaseQueue.PushToReleaseQueue(ptr);
}
@@ -26,14 +26,14 @@ MemOverlap has_internal_overlap(const Tensor& tensor) {
MemOverlap has_internal_overlap(TensorImpl* t) {
AT_ASSERT(t->layout() == kStrided);
if (t->storage().data() == nullptr) {
return MemOverlap::IS_NULL;
}
if (t->is_contiguous()) {
return MemOverlap::NO;
}
if (t->storage().data() == nullptr) {
return MemOverlap::IS_NULL;
}
auto strides = t->strides();
auto sizes = t->sizes();
for (size_t i = 0; i < strides.size(); ++i) {
@@ -62,15 +62,15 @@ MemOverlapStatus get_overlap_status(const Tensor& a, const Tensor& b) {
MemOverlapStatus get_overlap_status(TensorImpl* a, TensorImpl* b) {
if (a == b) return MemOverlapStatus::FULL;
if (a->storage().data() == nullptr || b->storage().data() == nullptr) {
return MemOverlapStatus::IS_NULL;
}
if (a->numel() == 0 || b->numel() == 0) {
return MemOverlapStatus::NO;
}
if (!a->is_contiguous() || !b->is_contiguous()) {
return MemOverlapStatus::TOO_HARD;
}
if (a->storage().data() == nullptr || b->storage().data() == nullptr) {
return MemOverlapStatus::IS_NULL;
}
if (a->storage().data() == b->storage().data()) {
const auto a_begin = static_cast<char*>(a->data());
const auto a_end = a_begin + a->numel() * a->itemsize();
@@ -685,6 +685,7 @@ void CalcuOpUtil::execute_npu_operate(
AclopSetCompileFlag(aclOpCompileFlag::ACL_OP_COMPILE_FUZZ);
}
aclopDestroyAttr(attr);
attr = nullptr;
NPUStatus ret = DestroyAclParams(params);
if (ret != SUCCESS) {
@@ -40,7 +40,9 @@ std::unordered_set<string> DynamicShapeUtil::disableDynamicOp = {
"SigmoidCrossEntropyWithLogitsV2",
"SigmoidCrossEntropyWithLogitsGradV2",
"ROIAlign",
"ROIAlignGrad"};
"ROIAlignGrad",
"ConcatD",
"Concat"};
long long int DynamicShapeUtil::steps_ = 0;
void DynamicShapeUtil::IncreaseSteps() {
@@ -314,10 +316,12 @@ void DynamicShapeUtil::StartThreadCompile(
// free attr and DesctroyParams
if (params.opDynamicType != "") {
aclopDestroyAttr(params.dynamicCompileAttr);
params.dynamicCompileAttr = nullptr;
DestroyDynamicAclParams(params.dynamicParam);
} else {
if (!isDynamicOnly) {
aclopDestroyAttr(params.attr);
params.attr = nullptr;
}
DestroyAclParams(params.paras);
}