Skip to content

Commit

Permalink
changed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakpiase committed Apr 19, 2021
1 parent 6464442 commit 7387593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/operators/reduce_ops/mkldnn/reduce_mkldnn_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ class ReduceGradMKLDNNKernel : public framework::OpKernel<T> {

protected:
mkldnn::memory::format_tag getPlainFormatTag(const Tensor* tensor) const {

auto tensor_dims_size = tensor->dims().size();
PADDLE_ENFORCE_EQ(
tensor_dims_size <= 5 && tensor_dims_size >= 1, true,
platform::errors::InvalidArgument("Dims for reduction_grad oneDNN op must be in range <1, 5>"));
platform::errors::InvalidArgument(
"Dims for reduction_grad oneDNN op must be in range <1, 5>"));

switch (tensor_dims_size) {
case 1:
Expand Down

1 comment on commit 7387593

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

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

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.