/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | StaticAssert.cpp | 48 static_assert(static_cast<TestOperationType>(ADD) == TestOperationType::ADD); 49 static_assert(static_cast<TestOperationType>(AVERAGE_POOL_2D) == 50 TestOperationType::AVERAGE_POOL_2D); 51 static_assert(static_cast<TestOperationType>(CONCATENATION) == TestOperationType::CONCATENATION); 52 static_assert(static_cast<TestOperationType>(CONV_2D) == TestOperationType::CONV_2D); 53 static_assert(static_cast<TestOperationType>(DEPTHWISE_CONV_2D) == 54 TestOperationType::DEPTHWISE_CONV_2D); 55 static_assert(static_cast<TestOperationType>(DEPTH_TO_SPACE) == TestOperationType::DEPTH_TO_SPACE); 56 static_assert(static_cast<TestOperationType>(DEQUANTIZE) == TestOperationType::DEQUANTIZE); 57 static_assert(static_cast<TestOperationType>(EMBEDDING_LOOKUP) == [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestAssertions.cpp | 43 CHECK_TEST_ENUM(TestOperationType, ADD); 44 CHECK_TEST_ENUM(TestOperationType, AVERAGE_POOL_2D); 45 CHECK_TEST_ENUM(TestOperationType, CONCATENATION); 46 CHECK_TEST_ENUM(TestOperationType, CONV_2D); 47 CHECK_TEST_ENUM(TestOperationType, DEPTHWISE_CONV_2D); 48 CHECK_TEST_ENUM(TestOperationType, DEPTH_TO_SPACE); 49 CHECK_TEST_ENUM(TestOperationType, DEQUANTIZE); 50 CHECK_TEST_ENUM(TestOperationType, EMBEDDING_LOOKUP); 51 CHECK_TEST_ENUM(TestOperationType, FLOOR); 52 CHECK_TEST_ENUM(TestOperationType, FULLY_CONNECTED); [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Normalization.cpp | 32 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 42 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 52 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 61 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 73 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 82 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 103 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() 112 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() 121 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() 131 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() [all …]
|
D | Elementwise.cpp | 27 case TestOperationType::RELU: in elementwiseOpConstructor() 28 case TestOperationType::RELU6: in elementwiseOpConstructor() 31 case TestOperationType::LOGISTIC: in elementwiseOpConstructor() 34 case TestOperationType::ABS: in elementwiseOpConstructor() 37 case TestOperationType::EXP: in elementwiseOpConstructor() 40 case TestOperationType::LOG: in elementwiseOpConstructor() 43 case TestOperationType::RSQRT: in elementwiseOpConstructor() 47 case TestOperationType::SQRT: in elementwiseOpConstructor() 57 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ 85 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ [all …]
|
D | Broadcast.cpp | 56 if (isQuantizedType(dataType) && op->opType == TestOperationType::MUL) { in broadcastOpConstructor() 63 if (op->opType == TestOperationType::DIV || op->opType == TestOperationType::POW) { in broadcastOpConstructor() 68 if ((op->opType == TestOperationType::ADD || op->opType == TestOperationType::MUL || in broadcastOpConstructor() 69 op->opType == TestOperationType::SUB || op->opType == TestOperationType::DIV) && in broadcastOpConstructor() 74 if (op->opType == TestOperationType::DIV) { in broadcastOpConstructor() 78 if (op->opType == TestOperationType::POW) { in broadcastOpConstructor() 86 .opType = TestOperationType::op, \ 117 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ 147 .opType = TestOperationType::op, \
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/ |
D | l2_normalization_v1_2.example.cpp | 40 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3() 117 .type = TestOperationType::ADD in get_test_model_dim4_axis3_all_inputs_as_internal() 121 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3_all_inputs_as_internal() 168 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3_relaxed() 245 .type = TestOperationType::ADD in get_test_model_dim4_axis3_relaxed_all_inputs_as_internal() 249 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3_relaxed_all_inputs_as_internal() 296 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3_float16() 373 .type = TestOperationType::ADD in get_test_model_dim4_axis3_float16_all_inputs_as_internal() 377 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3_float16_all_inputs_as_internal() 424 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis3_quant8() [all …]
|
D | cast.example.cpp | 40 .type = TestOperationType::CAST in get_test_model_float16_to_float16() 117 .type = TestOperationType::ADD in get_test_model_float16_to_float16_all_inputs_as_internal() 121 .type = TestOperationType::CAST in get_test_model_float16_to_float16_all_inputs_as_internal() 168 .type = TestOperationType::CAST in get_test_model_float16_to_float32() 245 .type = TestOperationType::ADD in get_test_model_float16_to_float32_all_inputs_as_internal() 249 .type = TestOperationType::CAST in get_test_model_float16_to_float32_all_inputs_as_internal() 296 .type = TestOperationType::CAST in get_test_model_float16_to_float32_relaxed() 373 .type = TestOperationType::ADD in get_test_model_float16_to_float32_relaxed_all_inputs_as_internal() 377 .type = TestOperationType::CAST in get_test_model_float16_to_float32_relaxed_all_inputs_as_internal() 424 .type = TestOperationType::CAST in get_test_model_float16_to_int32() [all …]
|
D | pow.example.cpp | 50 .type = TestOperationType::POW in get_test_model() 167 .type = TestOperationType::ADD in get_test_model_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_all_inputs_as_internal() 175 .type = TestOperationType::POW in get_test_model_all_inputs_as_internal() 232 .type = TestOperationType::POW in get_test_model_relaxed() 349 .type = TestOperationType::ADD in get_test_model_relaxed_all_inputs_as_internal() 353 .type = TestOperationType::ADD in get_test_model_relaxed_all_inputs_as_internal() 357 .type = TestOperationType::POW in get_test_model_relaxed_all_inputs_as_internal() 414 .type = TestOperationType::POW in get_test_model_float16() 531 .type = TestOperationType::ADD in get_test_model_float16_all_inputs_as_internal() [all …]
|
D | l2_normalization_axis.example.cpp | 50 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0() 137 .type = TestOperationType::ADD in get_test_model_dim4_axis0_all_inputs_as_internal() 141 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_all_inputs_as_internal() 198 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_relaxed() 285 .type = TestOperationType::ADD in get_test_model_dim4_axis0_relaxed_all_inputs_as_internal() 289 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_relaxed_all_inputs_as_internal() 346 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_float16() 433 .type = TestOperationType::ADD in get_test_model_dim4_axis0_float16_all_inputs_as_internal() 437 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_float16_all_inputs_as_internal() 494 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_quant8() [all …]
|
D | not_equal.example.cpp | 50 .type = TestOperationType::NOT_EQUAL in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::NOT_EQUAL in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::NOT_EQUAL in get_test_model_simple_int32() 289 .type = TestOperationType::NOT_EQUAL in get_test_model_simple_float16() 406 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 410 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 414 .type = TestOperationType::NOT_EQUAL in get_test_model_simple_float16_all_inputs_as_internal() 471 .type = TestOperationType::NOT_EQUAL in get_test_model_simple_relaxed() [all …]
|
D | less_equal.example.cpp | 50 .type = TestOperationType::LESS_EQUAL in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::LESS_EQUAL in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::LESS_EQUAL in get_test_model_simple_int32() 289 .type = TestOperationType::LESS_EQUAL in get_test_model_simple_float16() 406 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 410 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 414 .type = TestOperationType::LESS_EQUAL in get_test_model_simple_float16_all_inputs_as_internal() 471 .type = TestOperationType::LESS_EQUAL in get_test_model_simple_relaxed() [all …]
|
D | greater_equal.example.cpp | 50 .type = TestOperationType::GREATER_EQUAL in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::GREATER_EQUAL in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::GREATER_EQUAL in get_test_model_simple_int32() 289 .type = TestOperationType::GREATER_EQUAL in get_test_model_simple_float16() 406 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 410 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 414 .type = TestOperationType::GREATER_EQUAL in get_test_model_simple_float16_all_inputs_as_internal() 471 .type = TestOperationType::GREATER_EQUAL in get_test_model_simple_relaxed() [all …]
|
D | greater.example.cpp | 50 .type = TestOperationType::GREATER in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::GREATER in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::GREATER in get_test_model_simple_int32() 289 .type = TestOperationType::GREATER in get_test_model_simple_float16() 406 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 410 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 414 .type = TestOperationType::GREATER in get_test_model_simple_float16_all_inputs_as_internal() 471 .type = TestOperationType::GREATER in get_test_model_simple_relaxed() [all …]
|
D | less.example.cpp | 50 .type = TestOperationType::LESS in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::LESS in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::LESS in get_test_model_simple_int32() 289 .type = TestOperationType::LESS in get_test_model_simple_float16() 406 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 410 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 414 .type = TestOperationType::LESS in get_test_model_simple_float16_all_inputs_as_internal() 471 .type = TestOperationType::LESS in get_test_model_simple_relaxed() [all …]
|
D | equal.example.cpp | 50 .type = TestOperationType::EQUAL in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::EQUAL in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::EQUAL in get_test_model_simple_int32() 289 .type = TestOperationType::EQUAL in get_test_model_simple_float16() 406 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 410 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 414 .type = TestOperationType::EQUAL in get_test_model_simple_float16_all_inputs_as_internal() 471 .type = TestOperationType::EQUAL in get_test_model_simple_relaxed() [all …]
|
D | maximum.example.cpp | 50 .type = TestOperationType::MAXIMUM in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::MAXIMUM in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::MAXIMUM in get_test_model_simple_relaxed() 349 .type = TestOperationType::ADD in get_test_model_simple_relaxed_all_inputs_as_internal() 353 .type = TestOperationType::ADD in get_test_model_simple_relaxed_all_inputs_as_internal() 357 .type = TestOperationType::MAXIMUM in get_test_model_simple_relaxed_all_inputs_as_internal() 414 .type = TestOperationType::MAXIMUM in get_test_model_simple_float16() 531 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() [all …]
|
D | minimum.example.cpp | 50 .type = TestOperationType::MINIMUM in get_test_model_simple() 167 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 171 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 175 .type = TestOperationType::MINIMUM in get_test_model_simple_all_inputs_as_internal() 232 .type = TestOperationType::MINIMUM in get_test_model_simple_relaxed() 349 .type = TestOperationType::ADD in get_test_model_simple_relaxed_all_inputs_as_internal() 353 .type = TestOperationType::ADD in get_test_model_simple_relaxed_all_inputs_as_internal() 357 .type = TestOperationType::MINIMUM in get_test_model_simple_relaxed_all_inputs_as_internal() 414 .type = TestOperationType::MINIMUM in get_test_model_simple_float16() 531 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() [all …]
|
D | prelu.example.cpp | 50 .type = TestOperationType::PRELU in get_test_model() 137 .type = TestOperationType::ADD in get_test_model_all_inputs_as_internal() 141 .type = TestOperationType::PRELU in get_test_model_all_inputs_as_internal() 198 .type = TestOperationType::PRELU in get_test_model_all_tensors_as_inputs() 315 .type = TestOperationType::ADD in get_test_model_all_tensors_as_inputs_all_inputs_as_internal() 319 .type = TestOperationType::ADD in get_test_model_all_tensors_as_inputs_all_inputs_as_internal() 323 .type = TestOperationType::PRELU in get_test_model_all_tensors_as_inputs_all_inputs_as_internal() 380 .type = TestOperationType::PRELU in get_test_model_relaxed() 467 .type = TestOperationType::ADD in get_test_model_relaxed_all_inputs_as_internal() 471 .type = TestOperationType::PRELU in get_test_model_relaxed_all_inputs_as_internal() [all …]
|
D | expand_dims.example.cpp | 50 .type = TestOperationType::EXPAND_DIMS in get_test_model() 137 .type = TestOperationType::ADD in get_test_model_all_inputs_as_internal() 141 .type = TestOperationType::EXPAND_DIMS in get_test_model_all_inputs_as_internal() 198 .type = TestOperationType::EXPAND_DIMS in get_test_model_relaxed() 285 .type = TestOperationType::ADD in get_test_model_relaxed_all_inputs_as_internal() 289 .type = TestOperationType::EXPAND_DIMS in get_test_model_relaxed_all_inputs_as_internal() 346 .type = TestOperationType::EXPAND_DIMS in get_test_model_quant8() 433 .type = TestOperationType::ADD in get_test_model_quant8_all_inputs_as_internal() 437 .type = TestOperationType::EXPAND_DIMS in get_test_model_quant8_all_inputs_as_internal() 494 .type = TestOperationType::EXPAND_DIMS in get_test_model_int32() [all …]
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_3/ |
D | hard_swish.example.cpp | 40 .type = TestOperationType::HARD_SWISH in get_test_model_simple() 117 .type = TestOperationType::ADD in get_test_model_simple_all_inputs_as_internal() 121 .type = TestOperationType::HARD_SWISH in get_test_model_simple_all_inputs_as_internal() 168 .type = TestOperationType::HARD_SWISH in get_test_model_simple_float16() 245 .type = TestOperationType::ADD in get_test_model_simple_float16_all_inputs_as_internal() 249 .type = TestOperationType::HARD_SWISH in get_test_model_simple_float16_all_inputs_as_internal() 296 .type = TestOperationType::HARD_SWISH in get_test_model_simple_relaxed() 373 .type = TestOperationType::ADD in get_test_model_simple_relaxed_all_inputs_as_internal() 377 .type = TestOperationType::HARD_SWISH in get_test_model_simple_relaxed_all_inputs_as_internal() 424 .type = TestOperationType::HARD_SWISH in get_test_model_simple_quant8() [all …]
|
D | rank.example.cpp | 40 .type = TestOperationType::RANK in get_test_model_1d() 117 .type = TestOperationType::ADD in get_test_model_1d_all_inputs_as_internal() 121 .type = TestOperationType::RANK in get_test_model_1d_all_inputs_as_internal() 168 .type = TestOperationType::RANK in get_test_model_1d_int32() 215 .type = TestOperationType::RANK in get_test_model_1d_float16() 292 .type = TestOperationType::ADD in get_test_model_1d_float16_all_inputs_as_internal() 296 .type = TestOperationType::RANK in get_test_model_1d_float16_all_inputs_as_internal() 343 .type = TestOperationType::RANK in get_test_model_1d_quant8() 420 .type = TestOperationType::ADD in get_test_model_1d_quant8_all_inputs_as_internal() 424 .type = TestOperationType::RANK in get_test_model_1d_quant8_all_inputs_as_internal() [all …]
|
D | l2_normalization_quant8_signed.example.cpp | 50 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_quant8_signed() 137 .type = TestOperationType::ADD in get_test_model_dim4_axis0_quant8_signed_all_inputs_as_internal() 141 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_quant8_signed_all_inputs_as_internal() 198 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_neg_quant8_signed() 285 .type = TestOperationType::ADD in get_test_model_dim4_axis0_neg_quant8_signed_all_inputs_as_internal() 289 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis0_neg_quant8_signed_all_inputs_as_internal() 346 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis1_quant8_signed() 433 .type = TestOperationType::ADD in get_test_model_dim4_axis1_quant8_signed_all_inputs_as_internal() 437 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis1_quant8_signed_all_inputs_as_internal() 494 .type = TestOperationType::L2_NORMALIZATION in get_test_model_dim4_axis1_neg_quant8_signed() [all …]
|
D | cast_identity.example.cpp | 40 .type = TestOperationType::CAST in get_test_model_float16() 117 .type = TestOperationType::ADD in get_test_model_float16_all_inputs_as_internal() 121 .type = TestOperationType::CAST in get_test_model_float16_all_inputs_as_internal() 168 .type = TestOperationType::CAST in get_test_model_float32() 245 .type = TestOperationType::ADD in get_test_model_float32_all_inputs_as_internal() 249 .type = TestOperationType::CAST in get_test_model_float32_all_inputs_as_internal() 296 .type = TestOperationType::CAST in get_test_model_float32_relaxed() 373 .type = TestOperationType::ADD in get_test_model_float32_relaxed_all_inputs_as_internal() 377 .type = TestOperationType::CAST in get_test_model_float32_relaxed_all_inputs_as_internal() 424 .type = TestOperationType::CAST in get_test_model_int32() [all …]
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_3_cts_only/ |
D | while_fib_unknown_rank.example.cpp | 90 .type = TestOperationType::WHILE in get_test_model_n_2_unused_output() 141 .type = TestOperationType::LESS in get_test_model_n_2_unused_output() 350 .type = TestOperationType::ADD in get_test_model_n_2_unused_output() 354 .type = TestOperationType::MUL in get_test_model_n_2_unused_output() 358 .type = TestOperationType::SLICE in get_test_model_n_2_unused_output() 362 .type = TestOperationType::FULLY_CONNECTED in get_test_model_n_2_unused_output() 366 .type = TestOperationType::CONCATENATION in get_test_model_n_2_unused_output() 370 .type = TestOperationType::ADD in get_test_model_n_2_unused_output() 465 .type = TestOperationType::WHILE in get_test_model_n_2_unused_output_all_tensors_as_inputs() 516 .type = TestOperationType::LESS in get_test_model_n_2_unused_output_all_tensors_as_inputs() [all …]
|
D | while_fib_unknown_dimension.example.cpp | 90 .type = TestOperationType::WHILE in get_test_model_n_2_unused_output() 141 .type = TestOperationType::LESS in get_test_model_n_2_unused_output() 350 .type = TestOperationType::ADD in get_test_model_n_2_unused_output() 354 .type = TestOperationType::MUL in get_test_model_n_2_unused_output() 358 .type = TestOperationType::SLICE in get_test_model_n_2_unused_output() 362 .type = TestOperationType::FULLY_CONNECTED in get_test_model_n_2_unused_output() 366 .type = TestOperationType::CONCATENATION in get_test_model_n_2_unused_output() 370 .type = TestOperationType::ADD in get_test_model_n_2_unused_output() 465 .type = TestOperationType::WHILE in get_test_model_n_2_unused_output_all_tensors_as_inputs() 516 .type = TestOperationType::LESS in get_test_model_n_2_unused_output_all_tensors_as_inputs() [all …]
|