22 #include "../C/proposal.h" 23 #include "primitive.hpp" 49 const std::vector<float>& ratios_param,
50 const std::vector<float>& scales_param,
54 max_proposals(max_proposals),
55 iou_threshold(iou_threshold),
56 min_bbox_size(min_bbox_size),
57 feature_stride(feature_stride),
58 pre_nms_topn(pre_nms_topn),
59 post_nms_topn(post_nms_topn),
67 max_proposals(
dto->max_proposals),
68 iou_threshold(
dto->iou_threshold),
69 min_bbox_size(
dto->min_bbox_size),
70 feature_stride(
dto->feature_stride),
71 pre_nms_topn(
dto->pre_nms_topn),
72 post_nms_topn(
dto->post_nms_topn),
73 ratios(float_arr_to_vector(
dto->ratios)),
74 scales(float_arr_to_vector(
dto->scales))
84 std::vector<float> ratios;
85 std::vector<float> scales;
88 void update_dto(
dto&
dto)
const override 90 dto.max_proposals = max_proposals;
91 dto.iou_threshold = iou_threshold;
92 dto.min_bbox_size = min_bbox_size;
93 dto.feature_stride = feature_stride;
94 dto.pre_nms_topn = pre_nms_topn;
95 dto.post_nms_topn = post_nms_topn;
96 dto.ratios = float_vector_to_arr(ratios);
97 dto.scales = float_vector_to_arr(scales);
Represents data padding information.
std::string primitive_id
Unique id of a primitive within a topology.
base class for all primitives implementations.
padding output_padding
Requested output padding.