提交 af448373 编写于 作者: J jerrywgz

test=develop

上级 d30aa89f
...@@ -36,7 +36,7 @@ class BoxClipOp : public framework::OperatorWithKernel { ...@@ -36,7 +36,7 @@ class BoxClipOp : public framework::OperatorWithKernel {
PADDLE_ENFORCE_EQ(im_info_dims.size(), 2, PADDLE_ENFORCE_EQ(im_info_dims.size(), 2,
"The rank of Input(InputBox) in BoxClipOp must be 2"); "The rank of Input(InputBox) in BoxClipOp must be 2");
PADDLE_ENFORCE_EQ(im_info_dims[1], 2, PADDLE_ENFORCE_EQ(im_info_dims[1], 2,
"The last dimension of ImInfo must be 2"); "The last dimension of ImInfo must be 3");
} }
ctx->ShareDim("InputBox", /*->*/ "OutputBox"); ctx->ShareDim("InputBox", /*->*/ "OutputBox");
ctx->ShareLoD("InputBox", /*->*/ "OutputBox"); ctx->ShareLoD("InputBox", /*->*/ "OutputBox");
...@@ -51,8 +51,8 @@ class BoxClipOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -51,8 +51,8 @@ class BoxClipOpMaker : public framework::OpProtoAndCheckerMaker {
"InputBox is a LoDTensor with shape [..., 4] holds 4 points" "InputBox is a LoDTensor with shape [..., 4] holds 4 points"
"in last dimension in format [xmin, ymin, xmax, ymax]"); "in last dimension in format [xmin, ymin, xmax, ymax]");
AddInput("ImInfo", AddInput("ImInfo",
"(Tensor) Information for image reshape is in shape (N, 2), " "(Tensor) Information for image reshape is in shape (N, 3), "
"in format (height, width)"); "in format (height, width, im_scale)");
AddOutput("OutputBox", AddOutput("OutputBox",
"(LoDTensor) " "(LoDTensor) "
"OutputBox is a LoDTensor with the same shape as InputBox" "OutputBox is a LoDTensor with the same shape as InputBox"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册