diff --git a/tests/clang_format_utils.py b/tests/clang_format_utils.py index 1391fdcd47..ec20c7bae8 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,10 +32,11 @@ } # 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 +# 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": "b24cc8972344c4e01afbbae78d6a414f7638ff6f", - "Linux": "9073602de1c4e1748f2feea5a0782417b20e3043", + "Darwin": "acfda23b360824017c86528f6d59769bd4cf5587", + "Linux": "938869fb71b05f5ba345ab36dfbbc4388f53a550", } # Directory and file paths for the clang-format binary.