Skip to content

Commit

Permalink
[IE CLDNN] Fixed a region_yolo bug (#51761) (openvinotoolkit#5826)
Browse files Browse the repository at this point in the history
Signed-off-by: Kim, SungEun <[email protected]>
  • Loading branch information
sungeunk authored and yekruglov committed Jun 7, 2021
1 parent f05e6ef commit edf7b2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inline INPUT0_TYPE FUNC(logistic_activate)(INPUT0_TYPE x) {

inline int FUNC(output_index)(int batch, int region_num, int x, int y, int xy, int feature_offset) {
#if DO_SOFTMAX
return OUTPUT_GET_INDEX(batch, feature_offset * INPUT0_SIZE_X * INPUT0_SIZE_Y + xy, 1, 1);
return OUTPUT_GET_INDEX(batch, feature_offset * INPUT0_SIZE_X * INPUT0_SIZE_Y + xy, 0, 0);
#else
return OUTPUT_GET_INDEX(batch, feature_offset, y, x);
#endif
Expand Down

0 comments on commit edf7b2f

Please sign in to comment.