-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support the 'generate_proposals' for generating static graph ops #52940
Changes from 7 commits
3c63a22
4334702
4061de6
edf7973
b0ce785
46eade5
2099fc6
4d35bf9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -952,6 +952,12 @@ | |
extra : | ||
attrs : [bool use_mkldnn = false, str mkldnn_data_type = "float32"] | ||
|
||
- op : generate_proposals(generate_proposals_v2) | ||
inputs : | ||
{scores : Scores, bbox_deltas : BboxDeltas, im_shape : ImShape, anchors : Anchors, variances : Variances, pre_nms_top_n : pre_nms_topN, post_nms_top_n : post_nms_topN} | ||
outputs : | ||
{rpn_rois : RpnRois, rpn_roi_probs : RpnRoiProbs, rpn_rois_num : RpnRoisNum} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 可以通过 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 好的👌 |
||
|
||
- op : grad_add | ||
extra : | ||
attrs : [bool use_mkldnn = false, str x_data_format = "", str y_data_format = "", str mkldnn_data_type = "float32", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -780,6 +780,16 @@ | |
func : gelu | ||
backward : gelu_grad | ||
|
||
- op : generate_proposals | ||
args : (Tensor scores, Tensor bbox_deltas, Tensor im_shape, Tensor anchors, Tensor variances, int pre_nms_top_n, int post_nms_top_n, float nms_thresh, float min_size, float eta, bool pixel_offset=true) | ||
output : Tensor(rpn_rois), Tensor(rpn_roi_probs), Tensor(rpn_rois_num) | ||
infer_meta : | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 增加 |
||
func : GenerateProposalsV2InferMeta | ||
kernel : | ||
func : generate_proposals | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 增加 |
||
data_type : anchors | ||
optional : rpn_rois_num | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 参考其他ops的 |
||
|
||
- op : grid_sample | ||
args : (Tensor x, Tensor grid, str mode = "bilinear", str padding_mode = "zeros", bool align_corners = true) | ||
output : Tensor(out) | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inputs
里只会有tensor
类型的参数,其余类型的要配置到attrs
中,可以参考其他算子的配置。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来是这样,之前就好奇
inputs
和attrs
有什么区别,看到有的用inputs
,有的用attrs
,还以为这两个都可以