同步1.5.0 5dbbdd469a94c9e120360555c61fc66011478e26

同步1.8.1 ddeb6df954cd6db748138cdd7d27e6d61de80b14
    !2683 1.8版本增加HCCL环境变量
    Merge pull request !2683 from shibo/add_env
--
    !2681 ddp在fp32场景下训练失败修复
    Merge pull request !2681 from shibo/dd_bugfix
--
    !2682 修复npu tensor类型转换丢失梯度属性问题
    Merge pull request !2682 from shibo/cast_bugfix
This commit is contained in:
AtlasAccount
2021-11-06 16:37:10 +08:00
parent 2ece9b72f6
commit 25b61ee2ee
5 changed files with 478 additions and 211 deletions
+105 -105
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-11-04 23:00:37.843558905 +0800
+++ pytorch-develop-150/aten/CMakeLists.txt 2021-11-06 16:37:03.632079822 +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-11-04 23:00:37.843558905 +0800
+++ pytorch-develop-150/aten/src/ATen/CMakeLists.txt 2021-11-06 16:37:03.632079822 +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-11-04 23:00:37.847558910 +0800
+++ pytorch-develop-150/aten/src/ATen/core/dispatch/DispatchTable.h 2021-11-06 16:37:03.636079823 +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-11-04 23:00:37.847558910 +0800
+++ pytorch-develop-150/aten/src/ATen/function_wrapper.py 2021-11-06 16:37:03.640079825 +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-11-04 23:00:37.847558910 +0800
+++ pytorch-develop-150/aten/src/ATen/gen.py 2021-11-06 16:37:03.640079825 +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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/BatchLinearAlgebra.cpp 2021-11-06 16:37:03.640079825 +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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/cpu/Activation.cpp 2021-11-06 16:37:03.644079826 +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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/Memory.cpp 2021-11-06 16:37:03.640079825 +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-11-04 23:00:37.859558925 +0800
+++ pytorch-develop-150/aten/src/ATen/native/native_functions.yaml 2021-11-06 16:37:03.644079826 +0800
@@ -1,6 +1,5 @@
# See README.md in this directory for more guidance
@@ -7098,7 +7098,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/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-11-04 23:00:37.871558940 +0800
+++ pytorch-develop-150/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm/8x8-dq-aarch64-neon.S 2021-11-06 16:37:03.664079831 +0800
@@ -659,14 +659,14 @@
SUB x1, x1, 4
@@ -7124,7 +7124,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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorCompare.cpp 2021-11-06 16:37:03.644079826 +0800
@@ -64,7 +64,7 @@
Tensor isinf(const Tensor &self) {
@@ -7136,7 +7136,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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorFactories.cpp 2021-11-06 16:37:03.644079826 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7181,7 +7181,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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/TensorProperties.cpp 2021-11-06 16:37:03.644079826 +0800
@@ -87,6 +87,7 @@
if (self.is_contiguous(memory_format)) {
return self;
@@ -7192,7 +7192,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-11-04 23:00:37.851558915 +0800
+++ pytorch-develop-150/aten/src/ATen/native/UpSampleBicubic2d.cpp 2021-11-06 16:37:03.644079826 +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];
@@ -7204,7 +7204,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-11-04 23:00:37.847558910 +0800
+++ pytorch-develop-150/aten/src/ATen/native_parse.py 2021-11-06 16:37:03.640079825 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -7242,7 +7242,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-11-04 23:00:37.847558910 +0800
+++ pytorch-develop-150/aten/src/ATen/preprocess_declarations.py 2021-11-06 16:37:03.640079825 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -7274,7 +7274,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-11-04 23:00:37.879558950 +0800
+++ pytorch-develop-150/aten/src/ATen/templates/TensorBody.h 2021-11-06 16:37:03.668079832 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7307,7 +7307,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-11-04 23:00:37.879558950 +0800
+++ pytorch-develop-150/aten/src/ATen/templates/TensorMethods.h 2021-11-06 16:37:03.668079832 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7341,7 +7341,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-11-04 23:00:37.879558950 +0800
+++ pytorch-develop-150/aten/src/TH/CMakeLists.txt 2021-11-06 16:37:03.672079833 +0800
@@ -48,6 +48,11 @@
${CMAKE_CURRENT_SOURCE_DIR}
PARENT_SCOPE)
@@ -7356,7 +7356,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-11-04 23:00:37.879558950 +0800
+++ pytorch-develop-150/aten/src/TH/generic/THStorage.cpp 2021-11-06 16:37:03.672079833 +0800
@@ -1,9 +1,32 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7465,7 +7465,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-11-04 23:00:37.879558950 +0800
+++ pytorch-develop-150/aten/src/TH/generic/THStorage.h 2021-11-06 16:37:03.672079833 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7504,7 +7504,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/CMakeLists.txt 2021-11-06 16:37:03.680079835 +0800
@@ -63,6 +63,14 @@
message(STATUS "don't use NUMA")
endif()
@@ -7533,7 +7533,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/Backend.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7630,7 +7630,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/Device.cpp 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7670,7 +7670,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/Device.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7705,7 +7705,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/DeviceType.cpp 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7745,7 +7745,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/DeviceType.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7788,7 +7788,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/DispatchKey.cpp 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7820,7 +7820,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/DispatchKey.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7852,7 +7852,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/Storage.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7886,7 +7886,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.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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/StorageImpl.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,12 +1,39 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -7943,7 +7943,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/TensorImpl.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8011,7 +8011,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-11-04 23:00:37.887558960 +0800
+++ pytorch-develop-150/c10/core/TensorOptions.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8052,7 +8052,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/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-11-04 23:00:37.891558965 +0800
+++ pytorch-develop-150/c10/macros/Export.h 2021-11-06 16:37:03.680079835 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -8179,7 +8179,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-11-04 23:00:37.895558970 +0800
+++ pytorch-develop-150/caffe2/CMakeLists.txt 2021-11-06 16:37:03.684079836 +0800
@@ -32,6 +32,7 @@
# Add source, includes, and libs to lists
list(APPEND Caffe2_CPU_SRCS ${ATen_CPU_SRCS})
@@ -8334,7 +8334,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-11-04 23:00:37.835558895 +0800
+++ pytorch-develop-150/.clang-format 2021-11-06 16:37:03.628079821 +0800
@@ -84,5 +84,4 @@
SpacesInSquareBrackets: false
Standard: Cpp11
@@ -8345,7 +8345,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-11-04 23:00:37.947559036 +0800
+++ pytorch-develop-150/cmake/BuildVariables.cmake 2021-11-06 16:37:03.740079851 +0800
@@ -11,6 +11,7 @@
# CMakeLists.txt files under each folder respectively.
set(Caffe2_CPU_SRCS)
@@ -8372,7 +8372,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-11-04 23:00:37.947559036 +0800
+++ pytorch-develop-150/cmake/Codegen.cmake 2021-11-06 16:37:03.740079851 +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)
@@ -8403,7 +8403,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-11-04 23:00:37.951559041 +0800
+++ pytorch-develop-150/cmake/Dependencies.cmake 2021-11-06 16:37:03.744079852 +0800
@@ -1509,6 +1509,13 @@
ENDIF(NOT C_HAS_THREAD)
endif()
@@ -8420,7 +8420,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-11-04 23:00:37.951559041 +0800
+++ pytorch-develop-150/cmake/Summary.cmake 2021-11-06 16:37:03.744079852 +0800
@@ -134,6 +134,7 @@
if(NOT "${SELECTED_OP_LIST}" STREQUAL "")
message(STATUS " SELECTED_OP_LIST : ${SELECTED_OP_LIST}")
@@ -8431,7 +8431,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-11-04 23:00:37.951559041 +0800
+++ pytorch-develop-150/cmake/TorchConfig.cmake.in 2021-11-06 16:37:03.744079852 +0800
@@ -112,6 +112,11 @@
list(APPEND TORCH_LIBRARIES ${TORCH_CUDA_LIBRARIES})
endif()
@@ -8446,7 +8446,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-11-04 23:00:37.835558895 +0800
+++ pytorch-develop-150/CMakeLists.txt 2021-11-06 16:37:03.628079821 +0800
@@ -205,6 +205,10 @@
option(USE_TBB "Use TBB" OFF)
option(ONNX_ML "Enable traditional ONNX ML API." ON)
@@ -8513,7 +8513,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-11-04 23:00:37.835558895 +0800
+++ pytorch-develop-150/.dockerignore 2021-11-06 16:37:03.628079821 +0800
@@ -1,257 +1 @@
-# READ THIS BEFORE YOU REFACTOR ME
-#
@@ -8789,7 +8789,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-11-04 23:00:37.835558895 +0800
+++ pytorch-develop-150/requirements.txt 2021-11-06 16:37:03.628079821 +0800
@@ -4,4 +4,12 @@
requests
setuptools
@@ -8808,7 +8808,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-11-04 23:00:37.835558895 +0800
+++ pytorch-develop-150/setup.py 2021-11-06 16:37:03.628079821 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -8907,7 +8907,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/derivatives.yaml 2021-11-06 16:37:04.336080012 +0800
@@ -107,6 +107,10 @@
#
# NB: The parameter names here MUST be consistent with the parameter names
@@ -9029,7 +9029,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/dump_utils.py 2021-11-06 16:37:04.336080012 +0800
@@ -0,0 +1,296 @@
+# Copyright (c) 2021 Huawei Technologies Co., Ltd
+# All rights reserved.
@@ -9329,7 +9329,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/gen_autograd_functions.py 2021-11-06 16:37:04.336080012 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2021 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9535,7 +9535,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/gen_python_functions.py 2021-11-06 16:37:04.336080012 +0800
@@ -1,3 +1,20 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9577,7 +9577,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/gen_variable_type.py 2021-11-06 16:37:04.336080012 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2021 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -9745,7 +9745,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/templates/Functions.cpp 2021-11-06 16:37:04.336080012 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2021 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -9826,7 +9826,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/templates/python_torch_functions.cpp 2021-11-06 16:37:04.336080012 +0800
@@ -22,7 +22,7 @@
#include "torch/csrc/autograd/generated/variable_factories.h"
#include "torch/csrc/utils/structseq.h"
@@ -9910,7 +9910,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/templates/python_variable_methods.cpp 2021-11-06 16:37:04.336080012 +0800
@@ -15,7 +15,13 @@
#include "torch/csrc/cuda/Stream.h"
#include "torch/csrc/cuda/Event.h"
@@ -10005,7 +10005,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/templates/VariableType.cpp 2021-11-06 16:37:04.336080012 +0800
@@ -1,7 +1,28 @@
+// Copyright (c) 2021 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10037,7 +10037,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/autograd/templates/VariableType.h 2021-11-06 16:37:04.336080012 +0800
@@ -1,3 +1,20 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10069,7 +10069,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/tools/build_variables.bzl 2021-11-06 16:37:04.336080012 +0800
@@ -46,6 +46,7 @@
"torch/csrc/autograd/functions/utils.cpp",
"torch/csrc/autograd/input_buffer.cpp",
@@ -10155,7 +10155,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/torch/autograd/profiler.py 2021-11-06 16:37:04.340080013 +0800
@@ -1,8 +1,25 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -10632,7 +10632,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/torch/CMakeLists.txt 2021-11-06 16:37:04.340080013 +0800
@@ -97,6 +97,7 @@
${TORCH_SRC_DIR}/csrc/tensor/python_tensor.cpp
${TORCH_SRC_DIR}/csrc/utils.cpp
@@ -10664,7 +10664,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/engine.cpp 2021-11-06 16:37:04.344080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10816,7 +10816,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/functions/tensor.cpp 2021-11-06 16:37:04.344080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10848,7 +10848,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/init.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10891,7 +10891,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/input_buffer.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -10943,7 +10943,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/profiler.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11147,7 +11147,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/profiler.h 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11280,7 +11280,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/python_variable.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11334,7 +11334,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/python_variable_indexing.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11375,7 +11375,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.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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/record_function.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -154,6 +154,12 @@
}
}
@@ -11409,7 +11409,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/record_function.h 2021-11-06 16:37:04.348080015 +0800
@@ -120,7 +120,12 @@
// Get logical thread_id for the current thread
@@ -11426,7 +11426,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/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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/utils/wrap_outputs.h 2021-11-06 16:37:04.348080015 +0800
@@ -168,6 +168,45 @@
return r.release();
}
@@ -11475,7 +11475,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-11-04 23:00:38.547559789 +0800
+++ pytorch-develop-150/torch/csrc/autograd/VariableTypeManual.cpp 2021-11-06 16:37:04.344080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11509,7 +11509,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-11-04 23:00:38.551559794 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/comm.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11615,7 +11615,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-11-04 23:00:38.551559794 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/init.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11672,7 +11672,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-11-04 23:00:38.551559794 +0800
+++ pytorch-develop-150/torch/csrc/distributed/c10d/reducer.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11803,7 +11803,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-11-04 23:00:38.543559784 +0800
+++ pytorch-develop-150/torch/csrc/DynamicTypes.cpp 2021-11-06 16:37:04.340080013 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11852,7 +11852,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-11-04 23:00:38.543559784 +0800
+++ pytorch-develop-150/torch/csrc/Generator.cpp 2021-11-06 16:37:04.340080013 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -11920,7 +11920,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-11-04 23:00:38.551559794 +0800
+++ pytorch-develop-150/torch/csrc/generic/serialization.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12020,7 +12020,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-11-04 23:00:38.551559794 +0800
+++ pytorch-develop-150/torch/csrc/generic/Storage.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,7 +1,25 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12099,7 +12099,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-11-04 23:00:38.551559794 +0800
+++ pytorch-develop-150/torch/csrc/generic/StorageMethods.cpp 2021-11-06 16:37:04.348080015 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12147,7 +12147,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-11-04 23:00:38.543559784 +0800
+++ pytorch-develop-150/torch/csrc/Module.cpp 2021-11-06 16:37:04.340080013 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12291,7 +12291,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-11-04 23:00:38.559559804 +0800
+++ pytorch-develop-150/torch/csrc/tensor/python_tensor.cpp 2021-11-06 16:37:04.360080018 +0800
@@ -1,18 +1,35 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12668,7 +12668,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-11-04 23:00:38.559559804 +0800
+++ pytorch-develop-150/torch/csrc/utils/init.cpp 2021-11-06 16:37:04.360080018 +0800
@@ -1,7 +1,13 @@
#include <ATen/core/ivalue.h>
#include <torch/csrc/utils/init.h>
@@ -12833,7 +12833,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-11-04 23:00:38.559559804 +0800
+++ pytorch-develop-150/torch/csrc/utils/init.h 2021-11-06 16:37:04.360080018 +0800
@@ -8,4 +8,7 @@
void initThroughputBenchmarkBindings(PyObject* module);
@@ -12844,7 +12844,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-11-04 23:00:38.559559804 +0800
+++ pytorch-develop-150/torch/csrc/utils/python_arg_parser.h 2021-11-06 16:37:04.360080018 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12879,7 +12879,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-11-04 23:00:38.559559804 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_layouts.cpp 2021-11-06 16:37:04.360080018 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -12910,7 +12910,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-11-04 23:00:38.563559809 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_new.cpp 2021-11-06 16:37:04.360080018 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -13046,7 +13046,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-11-04 23:00:38.563559809 +0800
+++ pytorch-develop-150/torch/csrc/utils/tensor_types.cpp 2021-11-06 16:37:04.360080018 +0800
@@ -1,58 +1,91 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -13259,7 +13259,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-11-04 23:00:38.563559809 +0800
+++ pytorch-develop-150/torch/distributed/distributed_c10d.py 2021-11-06 16:37:04.360080018 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13340,7 +13340,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/torch/__init__.py 2021-11-06 16:37:04.340080013 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13383,7 +13383,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-11-04 23:00:38.563559809 +0800
+++ pytorch-develop-150/torch/lib/c10d/CMakeLists.txt 2021-11-06 16:37:04.364080020 +0800
@@ -28,6 +28,10 @@
option(USE_C10D_NCCL "USE C10D NCCL" ON)
endif()
@@ -13436,7 +13436,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-11-04 23:00:38.563559809 +0800
+++ pytorch-develop-150/torch/lib/libshm/CMakeLists.txt 2021-11-06 16:37:04.364080020 +0800
@@ -37,8 +37,11 @@
SET_TARGET_PROPERTIES(shm PROPERTIES
PREFIX "lib"
@@ -13493,7 +13493,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-11-04 23:00:38.563559809 +0800
+++ pytorch-develop-150/torch/nn/functional.py 2021-11-06 16:37:04.364080020 +0800
@@ -1611,7 +1611,7 @@
else:
output = input.matmul(weight.t())
@@ -13516,7 +13516,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-11-04 23:00:38.567559813 +0800
+++ pytorch-develop-150/torch/nn/modules/batchnorm.py 2021-11-06 16:37:04.364080020 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13548,7 +13548,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-11-04 23:00:38.567559813 +0800
+++ pytorch-develop-150/torch/nn/modules/module.py 2021-11-06 16:37:04.364080020 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -13692,7 +13692,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-11-04 23:00:38.567559813 +0800
+++ pytorch-develop-150/torch/nn/modules/normalization.py 2021-11-06 16:37:04.364080020 +0800
@@ -128,13 +128,14 @@
"""
__constants__ = ['normalized_shape', 'eps', 'elementwise_affine']
@@ -13761,7 +13761,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-11-04 23:00:38.567559813 +0800
+++ pytorch-develop-150/torch/nn/parallel/distributed.py 2021-11-06 16:37:04.364080020 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14116,7 +14116,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-11-04 23:00:38.567559813 +0800
+++ pytorch-develop-150/torch/onnx/symbolic_opset9.py 2021-11-06 16:37:04.368080021 +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)
@@ -14194,7 +14194,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-11-04 23:00:38.567559813 +0800
+++ pytorch-develop-150/torch/optim/adamax.py 2021-11-06 16:37:04.368080021 +0800
@@ -80,8 +80,8 @@
exp_inf.mul_(beta2).unsqueeze(0),
grad.abs().add_(eps).unsqueeze_(0)
@@ -14371,7 +14371,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-11-04 23:00:38.543559784 +0800
+++ pytorch-develop-150/torch/serialization.py 2021-11-06 16:37:04.360080018 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14455,7 +14455,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-11-04 23:00:38.543559784 +0800
+++ pytorch-develop-150/torch/storage.py 2021-11-06 16:37:04.360080018 +0800
@@ -7,6 +7,7 @@
class _StorageBase(object):
@@ -14475,7 +14475,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-11-04 23:00:38.543559784 +0800
+++ pytorch-develop-150/torch/tensor.py 2021-11-06 16:37:04.360080018 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14537,7 +14537,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/torch/_tensor_str.py 2021-11-06 16:37:04.340080013 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14591,7 +14591,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-11-04 23:00:38.571559818 +0800
+++ pytorch-develop-150/torch/utils/data/dataloader.py 2021-11-06 16:37:04.368080021 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14800,7 +14800,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-11-04 23:00:38.571559818 +0800
+++ pytorch-develop-150/torch/utils/data/_utils/pin_memory.py 2021-11-06 16:37:04.368080021 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -14861,7 +14861,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-11-04 23:00:38.571559818 +0800
+++ pytorch-develop-150/torch/utils/__init__.py 2021-11-06 16:37:04.368080021 +0800
@@ -1,6 +1,9 @@
from __future__ import absolute_import, division, print_function, unicode_literals
@@ -14874,7 +14874,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-11-04 23:00:38.539559779 +0800
+++ pytorch-develop-150/torch/_utils.py 2021-11-06 16:37:04.340080013 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
+121 -105
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-11-04 23:00:42.519564776 +0800
+++ pytorch-develop-181/aten/CMakeLists.txt 2021-11-06 16:37:08.388081125 +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-11-04 23:00:42.523564781 +0800
+++ pytorch-develop-181/aten/src/ATen/CMakeLists.txt 2021-11-06 16:37:08.388081125 +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-11-04 23:00:42.527564787 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/Dispatcher.h 2021-11-06 16:37:08.396081127 +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-11-04 23:00:42.527564787 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.cpp 2021-11-06 16:37:08.396081127 +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-11-04 23:00:42.531564792 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/ObservedOperators.h 2021-11-06 16:37:08.396081127 +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-11-04 23:00:42.531564792 +0800
+++ pytorch-develop-181/aten/src/ATen/core/dispatch/OperatorEntry.h 2021-11-06 16:37:08.396081127 +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-11-04 23:00:42.527564787 +0800
+++ pytorch-develop-181/aten/src/ATen/core/VariableFallbackKernel.cpp 2021-11-06 16:37:08.392081126 +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-11-04 23:00:42.539564802 +0800
+++ pytorch-develop-181/aten/src/ATen/native/Convolution.cpp 2021-11-06 16:37:08.404081129 +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-11-04 23:00:42.543564807 +0800
+++ pytorch-develop-181/aten/src/ATen/native/Memory.cpp 2021-11-06 16:37:08.408081130 +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-11-04 23:00:42.579564852 +0800
+++ pytorch-develop-181/aten/src/ATen/native/native_functions.yaml 2021-11-06 16:37:08.444081140 +0800
@@ -2073,6 +2073,8 @@
dispatch:
CPU, CUDA: isnan
@@ -573,7 +573,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/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-11-04 23:00:42.543564807 +0800
+++ pytorch-develop-181/aten/src/ATen/native/NPUVariableMethodStubs.cpp 2021-11-06 16:37:08.408081130 +0800
@@ -0,0 +1,408 @@
+#include "ATen/native/npu/common/FormatCastHelper.h"
+#include "ATen/native/npu/frame/FormatHelper.h"
@@ -1901,7 +1901,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-11-04 23:00:42.559564827 +0800
+++ pytorch-develop-181/aten/src/ATen/native/TensorFactories.cpp 2021-11-06 16:37:08.424081134 +0800
@@ -1,3 +1,20 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -1934,7 +1934,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-11-04 23:00:42.615564897 +0800
+++ pytorch-develop-181/aten/src/ATen/native/vulkan/api/vk_mem_alloc.h 2021-11-06 16:37:08.476081149 +0800
@@ -1,19229 +1,19229 @@
-//
-// Copyright (c) 2017-2020 Advanced Micro Devices, Inc. All rights reserved.
@@ -40396,7 +40396,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-11-04 23:00:42.619564902 +0800
+++ pytorch-develop-181/aten/src/ATen/record_function.cpp 2021-11-06 16:37:08.476081149 +0800
@@ -400,6 +400,9 @@
rf_tls_.tls_record_function_enabled_ = enable;
}
@@ -40409,7 +40409,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-11-04 23:00:42.619564902 +0800
+++ pytorch-develop-181/aten/src/ATen/record_function.h 2021-11-06 16:37:08.476081149 +0800
@@ -2,6 +2,7 @@
#include <ATen/core/ivalue.h>
@@ -40445,7 +40445,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-11-04 23:00:42.619564902 +0800
+++ pytorch-develop-181/aten/src/ATen/templates/TensorBody.h 2021-11-06 16:37:08.480081150 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40478,7 +40478,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-11-04 23:00:42.619564902 +0800
+++ pytorch-develop-181/aten/src/ATen/templates/TensorMethods.cpp 2021-11-06 16:37:08.480081150 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40523,7 +40523,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-11-04 23:00:42.523564781 +0800
+++ pytorch-develop-181/aten/src/ATen/Utils.cpp 2021-11-06 16:37:08.392081126 +0800
@@ -1,3 +1,18 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40567,7 +40567,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-11-04 23:00:42.623564907 +0800
+++ pytorch-develop-181/aten/src/TH/generic/THStorage.cpp 2021-11-06 16:37:08.484081151 +0800
@@ -1,9 +1,32 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40680,7 +40680,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-11-04 23:00:42.623564907 +0800
+++ pytorch-develop-181/aten/src/TH/generic/THStorage.h 2021-11-06 16:37:08.484081151 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40719,7 +40719,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/CMakeLists.txt 2021-11-06 16:37:08.496081155 +0800
@@ -79,6 +79,14 @@
message(STATUS "don't use NUMA")
endif()
@@ -40748,7 +40748,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/Backend.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40842,7 +40842,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/Device.cpp 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40873,7 +40873,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/Device.h 2021-11-06 16:37:08.496081155 +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=
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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/DeviceType.cpp 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40948,7 +40948,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/DeviceType.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -40990,7 +40990,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/DispatchKey.cpp 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,18 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41039,7 +41039,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/DispatchKey.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41086,7 +41086,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/DispatchKeySet.cpp 2021-11-06 16:37:08.496081155 +0800
@@ -11,6 +11,7 @@
DispatchKey::XLA,
DispatchKey::NestedTensor,
@@ -41106,7 +41106,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/DispatchKeySet.h 2021-11-06 16:37:08.496081155 +0800
@@ -193,6 +193,7 @@
DispatchKey::AutogradCPU,
DispatchKey::AutogradCUDA,
@@ -41117,7 +41117,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/Storage.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41151,7 +41151,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/StorageImpl.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,12 +1,42 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41211,7 +41211,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/TensorImpl.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41254,7 +41254,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-11-04 23:00:42.639564927 +0800
+++ pytorch-develop-181/c10/core/TensorOptions.h 2021-11-06 16:37:08.496081155 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41295,7 +41295,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-11-04 23:00:42.643564932 +0800
+++ pytorch-develop-181/c10/macros/Export.h 2021-11-06 16:37:08.500081156 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -41364,7 +41364,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-11-04 23:00:42.647564937 +0800
+++ pytorch-develop-181/caffe2/CMakeLists.txt 2021-11-06 16:37:08.504081157 +0800
@@ -76,6 +76,7 @@
# Add source, includes, and libs to lists
list(APPEND Caffe2_CPU_SRCS ${ATen_CPU_SRCS})
@@ -41489,7 +41489,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-11-04 23:00:42.727565038 +0800
+++ pytorch-develop-181/cmake/BuildVariables.cmake 2021-11-06 16:37:08.580081178 +0800
@@ -11,6 +11,7 @@
# CMakeLists.txt files under each folder respectively.
set(Caffe2_CPU_SRCS)
@@ -41513,7 +41513,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-11-04 23:00:42.727565038 +0800
+++ pytorch-develop-181/cmake/Codegen.cmake 2021-11-06 16:37:08.580081178 +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)
@@ -41546,7 +41546,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-11-04 23:00:42.727565038 +0800
+++ pytorch-develop-181/cmake/Dependencies.cmake 2021-11-06 16:37:08.580081178 +0800
@@ -1771,6 +1771,13 @@
endif(NOT C_HAS_THREAD)
endif()
@@ -41563,7 +41563,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-11-04 23:00:42.727565038 +0800
+++ pytorch-develop-181/cmake/Summary.cmake 2021-11-06 16:37:08.580081178 +0800
@@ -127,6 +127,7 @@
message(STATUS " USE_MKLDNN_CBLAS : ${USE_MKLDNN_CBLAS}")
endif()
@@ -41582,7 +41582,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-11-04 23:00:42.727565038 +0800
+++ pytorch-develop-181/cmake/TorchConfig.cmake.in 2021-11-06 16:37:08.580081178 +0800
@@ -158,6 +158,11 @@
list(APPEND TORCH_LIBRARIES ${TORCH_CUDA_LIBRARIES})
endif()
@@ -41597,7 +41597,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-11-04 23:00:42.511564766 +0800
+++ pytorch-develop-181/CMakeLists.txt 2021-11-06 16:37:08.376081121 +0800
@@ -261,6 +261,10 @@
"USE_DISTRIBUTED" OFF)
option(USE_TBB "Use TBB" OFF)
@@ -41641,7 +41641,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-11-04 23:00:42.743565058 +0800
+++ pytorch-develop-181/setup.py 2021-11-06 16:37:08.592081181 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -41710,7 +41710,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-11-04 23:00:43.231565671 +0800
+++ pytorch-develop-181/tools/autograd/derivatives.yaml 2021-11-06 16:37:09.048081309 +0800
@@ -1976,3 +1976,7 @@
- name: nonzero(Tensor self) -> Tensor
@@ -41721,7 +41721,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-11-04 23:00:43.231565671 +0800
+++ pytorch-develop-181/tools/autograd/gen_python_functions.py 2021-11-06 16:37:09.048081309 +0800
@@ -1,3 +1,20 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -41745,7 +41745,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-11-04 23:00:43.231565671 +0800
+++ pytorch-develop-181/tools/autograd/templates/Functions.cpp 2021-11-06 16:37:09.048081309 +0800
@@ -14,6 +14,35 @@
namespace torch { namespace autograd { namespace generated {
@@ -41784,7 +41784,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-11-04 23:00:43.231565671 +0800
+++ pytorch-develop-181/tools/autograd/templates/python_torch_functions.cpp 2021-11-06 16:37:09.048081309 +0800
@@ -30,7 +30,7 @@
#include "torch/csrc/autograd/generated/variable_factories.h"
#include "torch/csrc/utils/structseq.h"
@@ -41820,7 +41820,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-11-04 23:00:43.231565671 +0800
+++ pytorch-develop-181/tools/autograd/templates/python_variable_methods.cpp 2021-11-06 16:37:09.048081309 +0800
@@ -20,7 +20,13 @@
#ifdef USE_CUDA
#include "torch/csrc/cuda/Event.h"
@@ -41888,7 +41888,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-11-04 23:00:43.231565671 +0800
+++ pytorch-develop-181/tools/build_variables.bzl 2021-11-06 16:37:09.048081309 +0800
@@ -362,6 +362,7 @@
libtorch_cuda_core_sources = [
"torch/csrc/CudaIPCTypes.cpp",
@@ -41907,7 +41907,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-11-04 23:00:43.235565676 +0800
+++ pytorch-develop-181/tools/codegen/gen.py 2021-11-06 16:37:09.052081310 +0800
@@ -815,7 +815,7 @@
core_fm = make_file_manager(core_install_dir)
cpu_fm = make_file_manager(options.install_dir)
@@ -41955,7 +41955,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-11-04 23:00:43.235565676 +0800
+++ pytorch-develop-181/tools/codegen/model.py 2021-11-06 16:37:09.052081310 +0800
@@ -79,6 +79,7 @@
SparseHIP = auto()
SparseXPU = auto()
@@ -42097,7 +42097,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/autograd/profiler.py 2021-11-06 16:37:09.056081311 +0800
@@ -38,13 +38,16 @@
"""A list of Events (for pretty printing)"""
def __init__(self, *args, **kwargs):
@@ -42751,7 +42751,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-11-04 23:00:43.235565676 +0800
+++ pytorch-develop-181/torch/_C/_autograd.pyi 2021-11-06 16:37:09.052081310 +0800
@@ -9,14 +9,17 @@
CUDA = ...
NVTX = ...
@@ -42772,7 +42772,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-11-04 23:00:43.235565676 +0800
+++ pytorch-develop-181/torch/CMakeLists.txt 2021-11-06 16:37:09.052081310 +0800
@@ -131,6 +131,20 @@
endif()
@@ -42796,7 +42796,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-11-04 23:00:43.243565686 +0800
+++ pytorch-develop-181/torch/csrc/autograd/engine.cpp 2021-11-06 16:37:09.060081312 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -42893,7 +42893,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-11-04 23:00:43.243565686 +0800
+++ pytorch-develop-181/torch/csrc/autograd/functions/tensor.cpp 2021-11-06 16:37:09.060081312 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -42925,7 +42925,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-11-04 23:00:43.243565686 +0800
+++ pytorch-develop-181/torch/csrc/autograd/init.cpp 2021-11-06 16:37:09.060081312 +0800
@@ -52,6 +52,7 @@
.value("Disabled", ProfilerState::Disabled)
.value("CPU", ProfilerState::CPU)
@@ -42968,7 +42968,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-11-04 23:00:43.243565686 +0800
+++ pytorch-develop-181/torch/csrc/autograd/input_buffer.cpp 2021-11-06 16:37:09.060081312 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43020,7 +43020,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-11-04 23:00:43.247565691 +0800
+++ pytorch-develop-181/torch/csrc/autograd/profiler_legacy.cpp 2021-11-06 16:37:09.060081312 +0800
@@ -147,7 +147,7 @@
constexpr const CUDAStubs* default_stubs_addr = &default_stubs;
// Constant initialization, so it is guaranteed to be initialized before
@@ -43263,7 +43263,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-11-04 23:00:43.247565691 +0800
+++ pytorch-develop-181/torch/csrc/autograd/profiler_legacy.h 2021-11-06 16:37:09.060081312 +0800
@@ -19,6 +19,8 @@
#include <sys/time.h> // for gettimeofday()
#endif
@@ -43452,7 +43452,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-11-04 23:00:43.247565691 +0800
+++ pytorch-develop-181/torch/csrc/autograd/python_variable.cpp 2021-11-06 16:37:09.064081313 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43506,7 +43506,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-11-04 23:00:43.247565691 +0800
+++ pytorch-develop-181/torch/csrc/autograd/python_variable_indexing.cpp 2021-11-06 16:37:09.064081313 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43539,7 +43539,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-11-04 23:00:43.247565691 +0800
+++ pytorch-develop-181/torch/csrc/distributed/c10d/init.cpp 2021-11-06 16:37:09.064081313 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43706,7 +43706,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/csrc/DynamicTypes.cpp 2021-11-06 16:37:09.056081311 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43755,7 +43755,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/csrc/Generator.cpp 2021-11-06 16:37:09.056081311 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43802,7 +43802,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-11-04 23:00:43.251565696 +0800
+++ pytorch-develop-181/torch/csrc/generic/serialization.cpp 2021-11-06 16:37:09.068081314 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43900,7 +43900,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-11-04 23:00:43.251565696 +0800
+++ pytorch-develop-181/torch/csrc/generic/Storage.cpp 2021-11-06 16:37:09.068081314 +0800
@@ -1,7 +1,25 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -43980,7 +43980,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-11-04 23:00:43.251565696 +0800
+++ pytorch-develop-181/torch/csrc/generic/StorageMethods.cpp 2021-11-06 16:37:09.068081314 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44060,7 +44060,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/csrc/Module.cpp 2021-11-06 16:37:09.056081311 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44186,7 +44186,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-11-04 23:00:43.275565727 +0800
+++ pytorch-develop-181/torch/csrc/tensor/python_tensor.cpp 2021-11-06 16:37:09.092081321 +0800
@@ -1,3 +1,18 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44224,7 +44224,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-11-04 23:00:43.279565732 +0800
+++ pytorch-develop-181/torch/csrc/utils/python_arg_parser.h 2021-11-06 16:37:09.092081321 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44259,7 +44259,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-11-04 23:00:43.279565732 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_layouts.cpp 2021-11-06 16:37:09.096081322 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44290,7 +44290,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-11-04 23:00:43.279565732 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_new.cpp 2021-11-06 16:37:09.096081322 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44422,7 +44422,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-11-04 23:00:43.279565732 +0800
+++ pytorch-develop-181/torch/csrc/utils/tensor_types.cpp 2021-11-06 16:37:09.096081322 +0800
@@ -1,3 +1,19 @@
+// Copyright (c) 2020 Huawei Technologies Co., Ltd
+// Copyright (c) 2019, Facebook CORPORATION.
@@ -44472,7 +44472,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-11-04 23:00:43.279565732 +0800
+++ pytorch-develop-181/torch/distributed/distributed_c10d.py 2021-11-06 16:37:09.096081322 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -44563,7 +44563,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/__init__.py 2021-11-06 16:37:09.052081310 +0800
@@ -675,3 +675,11 @@
# class usage. We add these lines here to preserve backward compatibility.
quantized_lstm = torch.ops.aten.quantized_lstm
@@ -44579,7 +44579,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-11-04 23:00:43.287565742 +0800
+++ pytorch-develop-181/torch/lib/c10d/CMakeLists.txt 2021-11-06 16:37:09.104081324 +0800
@@ -27,6 +27,10 @@
option(USE_C10D_NCCL "USE C10D NCCL" ON)
endif()
@@ -44632,7 +44632,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-11-04 23:00:43.287565742 +0800
+++ pytorch-develop-181/torch/lib/c10d/comm.cpp 2021-11-06 16:37:09.104081324 +0800
@@ -12,6 +12,26 @@
class BroadcastWork {
@@ -44721,7 +44721,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-11-04 23:00:43.287565742 +0800
+++ pytorch-develop-181/torch/lib/c10d/reducer.cpp 2021-11-06 16:37:09.104081324 +0800
@@ -18,6 +18,18 @@
namespace c10d {
namespace {
@@ -44764,7 +44764,17 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
at::DeviceGuard g(replicas_[i][0].device());
local_used_maps_[i] = at::zeros(
{static_cast<long>(variable_count)}, options.pinned_memory(true));
@@ -370,6 +389,15 @@
@@ -340,7 +359,9 @@
", got ",
grad.toString());
TORCH_INTERNAL_ASSERT(grad.device() == bucket_view.device());
+#ifndef USE_NPU
TORCH_INTERNAL_ASSERT(grad.numel() == bucket_view.numel());
+#endif
// AccumulateGrad doesn't HAVE to obey the grad layout contract.
// The penalty for disobedience is reduced performance, not numerical
// death. Warnings here help diagnose poor DDP performance.
@@ -370,6 +391,15 @@
const at::Tensor& grad,
at::Tensor& bucket_view) {
// See Note [DDP Communication Hook]
@@ -44780,7 +44790,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
if (comm_hook_ == nullptr) {
// imitates wrapped_scalar_tensor in ATen/native/BinaryOps.cpp
auto wrapped = c10::scalar_to_tensor(double(1.) / divFactor_);
@@ -379,6 +407,7 @@
@@ -379,6 +409,7 @@
} else {
bucket_view.copy_(grad);
}
@@ -44788,20 +44798,22 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
void Reducer::mark_variable_ready_dense(VariableIndex index) {
@@ -407,6 +436,12 @@
@@ -407,6 +438,14 @@
// to bucket_view. If grad has already been set as views of buckets in
// previous iterations, no copy is needed.
if (!grad.is_alias_of(bucket_view)) {
+ // make sure grad has the same format as variable
+#ifdef USE_NPU
+ // make sure grad has the same format as variable
+ if (grad.storage().unsafeGetStorageImpl()->npu_desc_.npu_format_ !=
+ variable.storage().unsafeGetStorageImpl()->npu_desc_.npu_format_) {
+ grad = grad.npu_format_cast(
+ variable.storage().unsafeGetStorageImpl()->npu_desc_.npu_format_);
+ }
+#endif
this->copy_grad_to_bucket(grad, bucket_view);
if (gradient_as_bucket_view_) {
// Let grad point to bucket_view buffer.
@@ -823,7 +858,11 @@
@@ -823,7 +862,11 @@
variable.dtype() == options.dtype(),
"All parameters in a bucket must have the same dtype.");
}
@@ -44813,17 +44825,19 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
replica.variables.push_back(variable);
replica.offsets.push_back(offset);
replica.lengths.push_back(length);
@@ -903,6 +942,9 @@
@@ -903,6 +946,11 @@
auto& v = replica.variables[i];
const auto offset = replica.offsets[i];
const auto length = replica.lengths[i];
+
+#ifdef USE_NPU
+ replica.bucket_views_in.push_back(contents.narrow(0, offset, length).view(v.sizes()));
+ replica.bucket_views_in.push_back(
+ contents.narrow(0, offset, length));
+#else
if (v.is_non_overlapping_and_dense()) {
// If the param's memory is dense, match its layout, anticipating
// the autograd engine (AccumulateGrad) will also create gradients
@@ -916,6 +958,7 @@
@@ -916,6 +964,7 @@
replica.bucket_views_in.push_back(
contents.narrow(0, offset, length).view(v.sizes()));
}
@@ -44831,17 +44845,19 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
// By default `bucket_views_out` and `bucket_views_in` are
// essentially the same thing.
replica.bucket_views_out = replica.bucket_views_in;
@@ -954,6 +997,9 @@
@@ -954,6 +1003,11 @@
const auto& v = replica.variables[i];
const auto offset = replica.offsets[i];
const auto length = replica.lengths[i];
+
+#ifdef USE_NPU
+ replica.bucket_views_out.push_back(tensor.narrow(0, offset, length).view(v.sizes()));
+ replica.bucket_views_out.push_back(
+ tensor.narrow(0, offset, length));
+#else
if (v.is_non_overlapping_and_dense()) {
// If the param's memory is dense, match its layout, anticipating
// the autograd engine (AccumulateGrad) will also create gradients
@@ -967,6 +1013,7 @@
@@ -967,6 +1021,7 @@
replica.bucket_views_out.push_back(
tensor.narrow(0, offset, length).view(v.sizes()));
}
@@ -44849,7 +44865,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
}
}
@@ -1027,7 +1074,7 @@
@@ -1027,7 +1082,7 @@
}
// Find accumulator functions that don't show up in this graph.
@@ -44858,7 +44874,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
// If the accumulator function is present in the graph, we know
// a gradient will be computed for the corresponding parameter.
if (seen.count(it.first) == 0) {
@@ -1056,6 +1103,28 @@
@@ -1056,6 +1111,28 @@
Reducer::BucketReplica& replica,
size_t intra_bucket_index,
bool global_unused) {
@@ -44887,7 +44903,7 @@ diff -Nur '--exclude=.git*' '--exclude=.jenkins' '--exclude=android' '--exclude=
const auto& bucket_view = replica.bucket_views_out[intra_bucket_index];
runGradCallbackForVariable(variable, [&](auto& grad) {
// If a parameter is globally unused, we keep its grad untouched.
@@ -1074,6 +1143,7 @@
@@ -1074,6 +1151,7 @@
// The grad is not modified.
return false;
});
@@ -44897,7 +44913,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-11-04 23:00:43.287565742 +0800
+++ pytorch-develop-181/torch/lib/libshm/CMakeLists.txt 2021-11-06 16:37:09.104081324 +0800
@@ -41,8 +41,11 @@
set_target_properties(shm PROPERTIES
PREFIX "lib"
@@ -44913,7 +44929,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-11-04 23:00:43.291565747 +0800
+++ pytorch-develop-181/torch/nn/modules/batchnorm.py 2021-11-06 16:37:09.108081326 +0800
@@ -1,3 +1,18 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -44935,7 +44951,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-11-04 23:00:43.291565747 +0800
+++ pytorch-develop-181/torch/nn/modules/module.py 2021-11-06 16:37:09.108081326 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45061,7 +45077,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-11-04 23:00:43.291565747 +0800
+++ pytorch-develop-181/torch/nn/modules/normalization.py 2021-11-06 16:37:09.108081326 +0800
@@ -167,8 +167,11 @@
init.zeros_(self.bias)
@@ -45078,7 +45094,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-11-04 23:00:43.291565747 +0800
+++ pytorch-develop-181/torch/nn/parallel/distributed.py 2021-11-06 16:37:09.108081326 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45110,7 +45126,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-11-04 23:00:43.299565756 +0800
+++ pytorch-develop-181/torch/serialization.py 2021-11-06 16:37:09.116081328 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45199,7 +45215,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-11-04 23:00:43.299565756 +0800
+++ pytorch-develop-181/torch/storage.py 2021-11-06 16:37:09.116081328 +0800
@@ -8,6 +8,7 @@
class _StorageBase(object):
_cdata: Any
@@ -45219,7 +45235,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-11-04 23:00:43.299565756 +0800
+++ pytorch-develop-181/torch/tensor.py 2021-11-06 16:37:09.116081328 +0800
@@ -1,3 +1,18 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45281,7 +45297,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/_tensor_str.py 2021-11-06 16:37:09.056081311 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45325,7 +45341,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-11-04 23:00:43.307565766 +0800
+++ pytorch-develop-181/torch/utils/data/dataloader.py 2021-11-06 16:37:09.120081329 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45386,7 +45402,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-11-04 23:00:39.491560973 +0800
+++ pytorch-develop-181/torch/utils/data/_utils/pin_memory.py 2021-11-06 16:37:05.304080275 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.
@@ -45432,7 +45448,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-11-04 23:00:43.239565681 +0800
+++ pytorch-develop-181/torch/_utils.py 2021-11-06 16:37:09.056081311 +0800
@@ -1,3 +1,19 @@
+# Copyright (c) 2020 Huawei Technologies Co., Ltd
+# Copyright (c) 2019, Facebook CORPORATION.