File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
python/paddle/fluid/layers Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,13 @@ def rpn_target_assign(bbox_pred,
149
149
150
150
helper = LayerHelper ('rpn_target_assign' , ** locals ())
151
151
# Assign target label to anchors
152
- loc_index = helper .create_tmp_variable (dtype = 'int32' )
153
- score_index = helper .create_tmp_variable (dtype = 'int32' )
154
- target_label = helper .create_tmp_variable (dtype = 'int32' )
155
- target_bbox = helper .create_tmp_variable (dtype = anchor_box .dtype )
156
- bbox_inside_weight = helper .create_tmp_variable (dtype = anchor_box .dtype )
152
+ loc_index = helper .create_variable_for_type_inference (dtype = 'int32' )
153
+ score_index = helper .create_variable_for_type_inference (dtype = 'int32' )
154
+ target_label = helper .create_variable_for_type_inference (dtype = 'int32' )
155
+ target_bbox = helper .create_variable_for_type_inference (
156
+ dtype = anchor_box .dtype )
157
+ bbox_inside_weight = helper .create_variable_for_type_inference (
158
+ dtype = anchor_box .dtype )
157
159
helper .append_op (
158
160
type = "rpn_target_assign" ,
159
161
inputs = {
You can’t perform that action at this time.
0 commit comments