diff --git a/src/operators/kernel/detection_kernel.h b/src/operators/kernel/detection_kernel.h index 3d669b2d3d19a40928d54816b65deca6c5169673..de3c5a3a3ddd15f8485c92185c131210ba3899f9 100644 --- a/src/operators/kernel/detection_kernel.h +++ b/src/operators/kernel/detection_kernel.h @@ -28,11 +28,11 @@ class AnchorGeneratorParam : public OpParam { AnchorGeneratorParam(const VariableNameMap &inputs, const VariableNameMap &outputs, const AttributeMap &attrs, const Scope &scope) { - input_ = OpParam::GetVarValue("Input", inputs, scope); + input_ = OpParam::GetVarValue("Input", inputs, scope); output_anchors_ = - OpParam::GetVarValue("Anchors", outputs, scope); + OpParam::GetVarValue("Anchors", outputs, scope); output_variances_ = - OpParam::GetVarValue("Variances", outputs, scope); + OpParam::GetVarValue("Variances", outputs, scope); anchor_sizes_ = OpParam::GetAttr>("anchor_sizes", attrs); aspect_ratios_ = @@ -65,14 +65,16 @@ class ProposalParam : public OpParam { public: ProposalParam(const VariableNameMap &inputs, const VariableNameMap &outputs, const AttributeMap &attrs, const Scope &scope) { - scores_ = OpParam::GetVarValue("Scores", inputs, scope); + scores_ = + OpParam::GetVarValue("Scores", inputs, scope); bbox_deltas_ = - OpParam::GetVarValue("BboxDeltas", inputs, scope); - im_info_ = OpParam::GetVarValue("ImInfo", inputs, scope); + OpParam::GetVarValue("BboxDeltas", inputs, scope); + im_info_ = + OpParam::GetVarValue("ImInfo", inputs, scope); anchors_ = - OpParam::GetVarValue("Anchors", inputs, scope); + OpParam::GetVarValue("Anchors", inputs, scope); variances_ = - OpParam::GetVarValue("Variances", inputs, scope); + OpParam::GetVarValue("Variances", inputs, scope); rpn_rois_ = OpParam::GetVarValue("RpnRois", outputs, scope); @@ -112,10 +114,10 @@ class PSRoiPoolParam : public OpParam { public: PSRoiPoolParam(const VariableNameMap &inputs, const VariableNameMap &outputs, const AttributeMap &attrs, const Scope &scope) { - input_x_ = OpParam::GetVarValue("X", inputs, scope); + input_x_ = OpParam::GetVarValue("X", inputs, scope); input_rois_ = OpParam::GetVarValue("ROIs", inputs, scope); - output_ = OpParam::GetVarValue("Out", outputs, scope); + output_ = OpParam::GetVarValue("Out", outputs, scope); output_channels_ = OpParam::GetAttr("output_channels", attrs); pooled_height_ = OpParam::GetAttr("pooled_height", attrs); @@ -143,10 +145,10 @@ class RoiPerspectiveParam : public OpParam { RoiPerspectiveParam(const VariableNameMap &inputs, const VariableNameMap &outputs, const AttributeMap &attrs, const Scope &scope) { - input_x_ = OpParam::GetVarValue("X", inputs, scope); + input_x_ = OpParam::GetVarValue("X", inputs, scope); input_rois_ = OpParam::GetVarValue("ROIs", inputs, scope); - output_ = OpParam::GetVarValue("Out", outputs, scope); + output_ = OpParam::GetVarValue("Out", outputs, scope); spatial_scale_ = OpParam::GetAttr("spatial_scale", attrs); transformed_height_ = OpParam::GetAttr("transformed_height", attrs);