|
|
|
@ -41,6 +41,13 @@ class BoxClipOp : public framework::OperatorWithKernel {
|
|
|
|
|
ctx->ShareDim("InputBox", /*->*/ "OutputBox");
|
|
|
|
|
ctx->ShareLoD("InputBox", /*->*/ "OutputBox");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
framework::OpKernelType GetExpectedKernelType(
|
|
|
|
|
const framework::ExecutionContext& ctx) const override {
|
|
|
|
|
auto data_type = framework::GetDataTypeOfVar(ctx.InputVar("RpnRois"));
|
|
|
|
|
return framework::OpKernelType(data_type, platform::CPUPlace());
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class BoxClipOpMaker : public framework::OpProtoAndCheckerMaker {
|
|
|
|
|