Skip to content

Commit

Permalink
minor formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
jakpiase committed Apr 14, 2021
1 parent bd69270 commit ffe6156
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class ReduceGradMKLDNNKernel : public framework::OpKernel<T> {
const auto& onednn_engine = dev_ctx.GetEngine();

auto dims = ctx.Attr<std::vector<int>>("dim");
auto* input_x = ctx.Input<LoDTensor>("X");
auto* input_dy = ctx.Input<Tensor>(framework::GradVarName("Out"));

auto* output_dx = ctx.Output<Tensor>(framework::GradVarName("X"));
Expand Down Expand Up @@ -181,6 +180,7 @@ class ReduceGradMKLDNNKernel : public framework::OpKernel<T> {
default:
platform::errors::InvalidArgument(
"Tensor dims must be in range <1, 5>");
return mkldnn:memory:format_tag::a;
}
}
};
Expand Down
58 changes: 0 additions & 58 deletions python/paddle/fluid/tests/unittests/mkldnn/test_reduce_grad_tmp.py

This file was deleted.

0 comments on commit ffe6156

Please sign in to comment.