Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxun-zhang committed Apr 16, 2020
1 parent a7e78a2 commit 4ca1f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cpp/operator/mkldnn_operator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ OpAttrs GetPoolingOp(int kernel, int dim, int stride, int pad) {
OpAttrs attrs;
attrs.attrs.op = Op::Get("Pooling");
attrs.num_inputs = 1;
attrs.num_outputs = dim == 2 ? 2 : 1;
attrs.num_outputs = (dim == 2 || dim == 3) ? 2 : 1;
attrs.attrs.dict.insert({"kernel" , CreateShapeString(kernel, dim)});
attrs.attrs.dict.insert({"stride" , CreateShapeString(stride, dim)});
attrs.attrs.dict.insert({"pad" , CreateShapeString(pad, dim)});
Expand All @@ -175,7 +175,7 @@ OpAttrs GetPoolingOp(int kernel, int dim, int stride, int pad) {
OpAttrs GetPoolingBackwardsOp(int kernel, int dim, int stride, int pad) {
OpAttrs attrs;
attrs.attrs.op = Op::Get("_backward_Pooling");
attrs.num_inputs = dim == 2 ? 5 : 3;
attrs.num_inputs = (dim == 2 || dim == 3) ? 5 : 3;
attrs.num_outputs = 1;
attrs.attrs.dict.insert({"kernel", CreateShapeString(kernel, dim)});
attrs.attrs.dict.insert({"stride", CreateShapeString(stride, dim)});
Expand Down

0 comments on commit 4ca1f94

Please sign in to comment.