Skip to content

Commit

Permalink
polish some debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
zyfncg committed Nov 19, 2021
1 parent b21123a commit a36dae8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/slice_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ inline framework::DDim GetDecreasedDims(const framework::DDim slice_dims,
if (infer_flags && (*infer_flags)[i] != -1) {
PADDLE_ENFORCE_EQ(decreased_dims[axis], 1,
platform::errors::InvalidArgument(
"Decrease dim should be 1, but new received %d",
"Decrease dim should be 1, but now received %d",
decreased_dims[axis]));
}
}
Expand Down
3 changes: 0 additions & 3 deletions paddle/fluid/operators/strided_slice_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,8 @@ class StridedSliceOp : public framework::OperatorWithKernel {
new_out_shape.push_back(1);
}

VLOG(1) << "########### out_dims: " << out_dims;

out_dims = framework::make_ddim(new_out_shape);
}
VLOG(1) << "########### out_dims: " << out_dims;
ctx->SetOutputDim("Out", out_dims);
ctx->ShareLoD("Input", /*->*/ "Out");
}
Expand Down

1 comment on commit a36dae8

@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.