Skip to content

Commit f4a2a5c

Browse files
authored
[onert] Remove BradcastTo custom OP (#15197)
This commit removes BroadcastTo custom op loader and related tests. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
1 parent 2c9ff76 commit f4a2a5c

8 files changed

Lines changed: 0 additions & 234 deletions

runtime/onert/core/src/loader/BaseLoader.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,6 @@ void BaseLoader<LoaderDomain>::loadCustom(const Operator *op, ir::Graph &subg)
11231123
ReduceAll,
11241124
MatrixBandPart,
11251125
BatchMatMul,
1126-
BroadcastTo,
11271126
FusedBatchNorm,
11281127
StatelessRandomUniform,
11291128
Erf,
@@ -1137,7 +1136,6 @@ void BaseLoader<LoaderDomain>::loadCustom(const Operator *op, ir::Graph &subg)
11371136
{"MatrixBandPart", BuiltinOP::MatrixBandPart},
11381137
{"BatchMatMulV2", BuiltinOP::BatchMatMul},
11391138
{"FusedBatchNormV3", BuiltinOP::FusedBatchNorm},
1140-
{"BroadcastTo", BuiltinOP::BroadcastTo},
11411139
{"StatelessRandomUniform", BuiltinOP::StatelessRandomUniform},
11421140
{"Erf", BuiltinOP::Erf},
11431141
{"TFLite_Detection_PostProcess", BuiltinOP::DetectionPostProcess},
@@ -1161,9 +1159,6 @@ void BaseLoader<LoaderDomain>::loadCustom(const Operator *op, ir::Graph &subg)
11611159
case BuiltinOP::BatchMatMul:
11621160
loadBatchMatMul(op, subg);
11631161
break;
1164-
case BuiltinOP::BroadcastTo:
1165-
loadOperationTo<ir::operation::BroadcastTo>(op, subg);
1166-
break;
11671162
case BuiltinOP::FusedBatchNorm:
11681163
loadFusedBatchNorm(op, subg);
11691164
break;

runtime/tests/nnapi/bridge/wrapper/OperationFactory.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,10 +1566,6 @@ OperationFactory::OperationFactory()
15661566
return new operation::BatchMatMul{inputs, outputs, param};
15671567
};
15681568

1569-
// 0 -> Input Tensor Index
1570-
// 1 -> int32, int64, An 1-D int tensor Index
1571-
_map[ANEURALNETWORKS_BROADCAST_TO_EX] = createSimpleBinaryOp<operation::BroadcastTo>;
1572-
15731569
_map[ANEURALNETWORKS_STATELESS_RANDOM_UNIFORM_EX] = [](const OperationFactory::Param &init_param,
15741570
Operands &) {
15751571
assert(init_param.input_count == 2 && init_param.output_count == 1);

runtime/tests/nnapi/nnapi_gtest.skip.armv7l-linux.acl_cl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ GeneratedTests.batch_matmul_ex_float_broadcast
1212
GeneratedTests.batch_matmul_ex_float_broadcast2_adj_xy
1313
GeneratedTests.batch_matmul_ex_float_broadcast_adj_x
1414
GeneratedTests.batch_matmul_ex_float_simple
15-
GeneratedTests.broadcast_to_ex_1D_nnfw
16-
GeneratedTests.broadcast_to_ex_2D_nnfw
17-
GeneratedTests.broadcast_to_ex_dynamic_2D_nnfw
18-
GeneratedTests.broadcast_to_ex_dynamic_3D_nnfw
1915
GeneratedTests.cast_dynamic_float32_to_int32_nnfw
2016
GeneratedTests.cast_float16_to_float16
2117
GeneratedTests.cast_float16_to_float32

runtime/tests/nnapi/nnapi_gtest.skip.armv7l-linux.acl_neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ GeneratedTests.batch_matmul_ex_float_broadcast
1212
GeneratedTests.batch_matmul_ex_float_broadcast2_adj_xy
1313
GeneratedTests.batch_matmul_ex_float_broadcast_adj_x
1414
GeneratedTests.batch_matmul_ex_float_simple
15-
GeneratedTests.broadcast_to_ex_1D_nnfw
16-
GeneratedTests.broadcast_to_ex_2D_nnfw
17-
GeneratedTests.broadcast_to_ex_dynamic_2D_nnfw
18-
GeneratedTests.broadcast_to_ex_dynamic_3D_nnfw
1915
GeneratedTests.cast_dynamic_float32_to_int32_nnfw
2016
GeneratedTests.cast_float16_to_float16
2117
GeneratedTests.cast_float16_to_float32

runtime/tests/nnapi/specs/Ex/broadcast_to_ex_1D_nnfw.mod.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

runtime/tests/nnapi/specs/Ex/broadcast_to_ex_2D_nnfw.mod.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

runtime/tests/nnapi/specs/Ex/broadcast_to_ex_dynamic_2D_nnfw.mod.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

runtime/tests/nnapi/specs/Ex/broadcast_to_ex_dynamic_3D_nnfw.mod.py

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)