Divide BBOX_TRANSFORM into 2 ops.

Divide BBOX_TRANSFORM op into 2 ops
- AXIS_ALIGNED_BBOX_TRANSFORM
- ROTATED_BBOX_TRANSFORM

Rotated bounding boxes use different tensor format than axis-aligned
bounding boxes, and it would be less confusing if they were represented
by a separate operator code.

Bug: 113562630

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_xTargetTest with sample driver
Change-Id: Ie08f2e0d0da77f6750766a394969653478d054d5
Merged-In: Ie08f2e0d0da77f6750766a394969653478d054d5
(cherry picked from commit d2bae1c268)
This commit is contained in:
Xusong Wang
2018-10-04 15:03:13 -07:00
committed by Przemyslaw Szczepaniak
parent f59720c6b8
commit d4b00fc332

View File

@@ -30,7 +30,7 @@ enum OperationType : @1.1::OperationType {
ARGMAX = 38,
ARGMIN = 39,
PAD_V2 = 40,
BBOX_TRANSFORM = 41,
AXIS_ALIGNED_BBOX_TRANSFORM = 41,
BIDIRECTIONAL_SEQUENCE_LSTM = 42,
BIDIRECTIONAL_SEQUENCE_RNN = 43,
BOX_WITH_NMS_LIMIT = 44,
@@ -76,6 +76,7 @@ enum OperationType : @1.1::OperationType {
TRANSPOSE_CONV_2D = 84,
UNIDIRECTIONAL_SEQUENCE_LSTM = 85,
UNIDIRECTIONAL_SEQUENCE_RNN = 86,
ROTATED_BBOX_TRANSFORM = 87,
};
/**