Skip to content

Commit

Permalink
fix unittest case
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmonDay committed Mar 11, 2022
1 parent 37b839a commit ceecdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_diag_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def init_config(self):
class TestDiagV2OpCase4(TestDiagV2Op):
def init_config(self):
self.x = np.random.rand(100)
self.padding_value = 8
self.padding_value = 2
n = self.x.size
self.out = self.padding_value * np.ones((n, n)) + np.diag(
self.x, self.offset) - np.diag(self.padding_value * np.ones(n))
Expand Down

1 comment on commit ceecdbb

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on ceecdbb Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #40447 Commit ID: ceecdbb contains failed CI.

🔹 Failed: PR-CI-Static-Check

code_style_failed
2022-03-11 20:52:27     with_avx: ON
2022-03-11 20:52:27 with_gpu: ON
2022-03-11 20:52:27 with_mkl: ON
2022-03-11 20:52:27 with_mkldnn: ON
2022-03-11 20:52:27 with_python: ON'
2022-03-11 20:52:27 + set +x
2022-03-11 20:52:27 ========================================
2022-03-11 20:52:27 summary problems:
2022-03-11 20:52:27 There is 1 error: Code format error.
2022-03-11 20:52:27 ========================================
2022-03-11 20:52:27 Code format error Please fix it according to the diff information:
2022-03-11 20:52:27 code format error
2022-03-11 20:52:27 diff --git a/paddle/phi/core/compat/op_utils.h b/paddle/phi/core/compat/op_utils.h
2022-03-11 20:52:27 index 871257b..46c29f8 100644
2022-03-11 20:52:27 --- a/paddle/phi/core/compat/op_utils.h
2022-03-11 20:52:27 +++ b/paddle/phi/core/compat/op_utils.h
2022-03-11 20:52:27 @@ -37,28 +37,18 @@ const std::unordered_setstd::string standard_kernel_suffixs({
2022-03-11 20:52:27 * after 2.0, and can no longer be occupied by the previously abandoned ops.
2022-03-11 20:52:27 * They are marked here uniformly.
2022-03-11 20:52:27 */
2022-03-11 20:52:27 -const std::unordered_setstd::string deprecated_op_names({"diag",

🔹 Failed: PR-CI-Coverage

test_failed
2022-03-11 22:46:16 The following tests FAILED:
2022-03-11 22:46:16 243 - test_tracer (Failed)
2022-03-11 22:46:16 309 - test_egr_performance_benchmark_eager_cuda (Failed)
2022-03-11 22:46:16 310 - test_egr_performance_benchmark_fluid_cuda (Failed)
2022-03-11 22:46:16 243 - test_tracer (Failed)
2022-03-11 22:46:16 308 - test_egr_performance_benchmark_fluid_cpu (Failed)
2022-03-11 22:46:16 309 - test_egr_performance_benchmark_eager_cuda (Failed)
2022-03-11 22:46:16 + EXCODE=8
2022-03-11 22:46:16 + echo 8
2022-03-11 22:46:16 8
2022-03-11 22:46:16 + echo 'ipipe_log_param_EXCODE: 8'
2022-03-11 22:46:16 ipipe_log_param_EXCODE: 8
2022-03-11 22:46:16 + '[' 8 -ne 0 ']'
2022-03-11 22:46:16 + '[' 8 -ne 9 ']'
2022-03-11 22:46:16 + exit 8
2022-03-11 22:46:16 {build code state=8}
2022-03-11 22:46:26 kill agent BUILD_CODE_FAIL

Please sign in to comment.