From ca21c6da42813481902e925550615eedb71b09d7 Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Mon, 15 Nov 2021 10:44:49 +0800 Subject: [PATCH 1/3] [DLMED] update hash Signed-off-by: Nic Ma --- tests/clang_format_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/clang_format_utils.py b/tests/clang_format_utils.py index 1391fdcd47..27e2999ea8 100644 --- a/tests/clang_format_utils.py +++ b/tests/clang_format_utils.py @@ -34,8 +34,8 @@ # This dictionary maps each platform to a relative path to a file containing its reference hash. # github/pytorch/pytorch/tree/63d62d3e44a0a4ec09d94f30381d49b78cc5b095/tools/clang_format_hash PLATFORM_TO_HASH = { - "Darwin": "b24cc8972344c4e01afbbae78d6a414f7638ff6f", - "Linux": "9073602de1c4e1748f2feea5a0782417b20e3043", + "Darwin": "acfda23b360824017c86528f6d59769bd4cf5587", + "Linux": "938869fb71b05f5ba345ab36dfbbc4388f53a550", } # Directory and file paths for the clang-format binary. From d25b9965a4b3fd1ae33b596b3355fe58210ada2f Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Mon, 15 Nov 2021 10:56:04 +0800 Subject: [PATCH 2/3] [DLMED] fix outdate links in comments Signed-off-by: Nic Ma --- tests/clang_format_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/clang_format_utils.py b/tests/clang_format_utils.py index 27e2999ea8..2e3b25c4a0 100644 --- a/tests/clang_format_utils.py +++ b/tests/clang_format_utils.py @@ -10,7 +10,7 @@ # limitations under the License. # this file is adapted from -# github/pytorch/pytorch/blob/63d62d3e44a0a4ec09d94f30381d49b78cc5b095/tools/clang_format_utils.py +# https://github.com/pytorch/pytorch/blob/v1.9.1/tools/clang_format_utils.py. import os import platform @@ -32,7 +32,7 @@ } # This dictionary maps each platform to a relative path to a file containing its reference hash. -# github/pytorch/pytorch/tree/63d62d3e44a0a4ec09d94f30381d49b78cc5b095/tools/clang_format_hash +# https://github.com/pytorch/pytorch/tree/master/tools/clang_format_hash. PLATFORM_TO_HASH = { "Darwin": "acfda23b360824017c86528f6d59769bd4cf5587", "Linux": "938869fb71b05f5ba345ab36dfbbc4388f53a550", From 96a981951f257e2bbb8cb218b0b3055f71901653 Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Mon, 15 Nov 2021 10:59:15 +0800 Subject: [PATCH 3/3] [DLMED] add more description Signed-off-by: Nic Ma --- tests/clang_format_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/clang_format_utils.py b/tests/clang_format_utils.py index 2e3b25c4a0..ec20c7bae8 100644 --- a/tests/clang_format_utils.py +++ b/tests/clang_format_utils.py @@ -32,7 +32,8 @@ } # This dictionary maps each platform to a relative path to a file containing its reference hash. -# https://github.com/pytorch/pytorch/tree/master/tools/clang_format_hash. +# Refer to: https://github.com/pytorch/pytorch/tree/master/tools/clang_format_hash. +# Note: the hash value may need update when the `clang-format` package is updated in Amazon S3. PLATFORM_TO_HASH = { "Darwin": "acfda23b360824017c86528f6d59769bd4cf5587", "Linux": "938869fb71b05f5ba345ab36dfbbc4388f53a550",