From 5d8c4504c856c3b54be3f37bf50983fab04d0bdc Mon Sep 17 00:00:00 2001 From: Tony Cao <57024921+caolonghao@users.noreply.github.com> Date: Mon, 10 Oct 2022 18:29:48 +0800 Subject: [PATCH] [CodeStyle][F601] Remove repeated keys and only keep the last (#46719) * Update README.md * Update README.md * Fix F601: only keep the last key among the same names --- .cmake-format.py | 12 ------------ .../tests/unittests/ipu/test_ipu_strategy_ipu.py | 1 - .../fluid/tests/unittests/xpu/test_pool2d_op_xpu.py | 1 - 3 files changed, 14 deletions(-) diff --git a/.cmake-format.py b/.cmake-format.py index 8527ad66f0..a6f4af8f8a 100644 --- a/.cmake-format.py +++ b/.cmake-format.py @@ -50,12 +50,6 @@ with section("parse"): "DEPS": '*', } }, - "hip_library": { - "kwargs": { - "SRCS": '*', - "DEPS": '*', - } - }, "xpu_library": { "kwargs": { "SRCS": '*', @@ -68,12 +62,6 @@ with section("parse"): "DEPS": '*', } }, - "hip_library": { - "kwargs": { - "SRCS": '*', - "DEPS": '*', - } - }, "go_library": { "kwargs": { "SRCS": '*', diff --git a/python/paddle/fluid/tests/unittests/ipu/test_ipu_strategy_ipu.py b/python/paddle/fluid/tests/unittests/ipu/test_ipu_strategy_ipu.py index 6fa3d77ead..ed4b258b75 100644 --- a/python/paddle/fluid/tests/unittests/ipu/test_ipu_strategy_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/test_ipu_strategy_ipu.py @@ -57,7 +57,6 @@ class TestIpuStrategy(unittest.TestCase): options = { 'cache_path': 'paddle_cache', 'log_dir': 'paddle_log', - 'partials_type_matmuls': 'half', 'partials_type_matmuls': 'float', } ipu_strategy.set_options(options) diff --git a/python/paddle/fluid/tests/unittests/xpu/test_pool2d_op_xpu.py b/python/paddle/fluid/tests/unittests/xpu/test_pool2d_op_xpu.py index 9c94b295ac..d7bebe49df 100644 --- a/python/paddle/fluid/tests/unittests/xpu/test_pool2d_op_xpu.py +++ b/python/paddle/fluid/tests/unittests/xpu/test_pool2d_op_xpu.py @@ -289,7 +289,6 @@ class XPUTestPool2D_Op(XPUOpTestWrapper): 'global_pooling': self.global_pool, 'use_cudnn': self.use_cudnn, 'use_mkldnn': self.use_mkldnn, - 'ceil_mode': self.ceil_mode, 'data_format': self.data_format, 'exclusive': self.exclusive, 'adaptive': self.adaptive, -- GitLab