Skip to content

Commit

Permalink
调整代码格式
Browse files Browse the repository at this point in the history
  • Loading branch information
BrilliantYuKaimin committed Apr 8, 2022
1 parent 56f7951 commit 048ef2b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions paddle/phi/infermeta/unary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2874,10 +2874,10 @@ void ChannelShuffleInferMeta(const MetaTensor& x,
"Input should be a 4-D tensor of format [N, C, H, W] "
"or [N, H, W, C], but got %u.",
input_dims.size()));
PADDLE_ENFORCE_GE(groups,
1,
phi::errors::InvalidArgument(
"groups should be larger than 0."));
PADDLE_ENFORCE_GE(
groups,
1,
phi::errors::InvalidArgument("groups should be larger than 0."));
PADDLE_ENFORCE_EQ(data_format == "NCHW" || data_format == "NHWC",
true,
phi::errors::InvalidArgument(
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/channel_shuffle_grad_kernel.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/channel_shuffle_grad_kernel.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/channel_shuffle_kernel.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/channel_shuffle_kernel.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def test_dygraph2(self):

class TestChannelShuffleError(unittest.TestCase):
def test_error_functional(self):

def error_input():
with paddle.fluid.dygraph.guard():
x = np.random.random([9, 4, 4]).astype("float64")
Expand Down

0 comments on commit 048ef2b

Please sign in to comment.