/packages/modules/NeuralNetworks/common/ |
D | Validation.cpp | 893 NN_TRY(validateModelSubgraphInputOutputs(subgraph.inputIndexes, subgraph.operands, in validateModelSubgraph() 1258 request.inputs, model.main.inputIndexes, model.main.operands, in validateRequestForModelImpl() 1284 const auto& inputIndexes = model->main.inputIndexes; in validateMemoryDescImpl() local 1285 NN_VALIDATE_LT(role.ioIndex, inputIndexes.size()); in validateMemoryDescImpl() 1290 operands.push_back(model->main.operands[inputIndexes[role.ioIndex]]); in validateMemoryDescImpl() 1343 OperationValidationContext(const char* operationName, const std::vector<uint32_t>& inputIndexes, in OperationValidationContext() argument 1347 inputIndexes(inputIndexes), in OperationValidationContext() 1367 const std::vector<uint32_t>& inputIndexes; member in android::nn::__anonb795b7630111::OperationValidationContext 1377 return &operands.at(inputIndexes.at(index)); in getInputOperand() 1385 auto count = inputIndexes.size(); in getNumInputs() [all …]
|
D | LegacyUtils.cpp | 182 const uint32_t* inputIndexes, uint32_t outputCount, in OperationValidationContext() argument 186 inputIndexes(inputIndexes), in OperationValidationContext() 208 const uint32_t* inputIndexes; member in android::nn::__anon3bac189e0111::OperationValidationContext 220 return &operands[inputIndexes[index]]; in getInputOperand() 734 const uint32_t* inputIndexes, uint32_t outputCount, in validateOperation() argument 737 NN_RETURN_IF_ERROR(validateOperandList(inputCount, inputIndexes, in validateOperation() 770 auto inputType = operands[inputIndexes[0]].type; in validateOperation() 794 const auto inputRank = operands[inputIndexes[0]].dimensions.size(); in validateOperation() 799 return validateOperationOperandTypes(operands, inputCount, inputIndexes, in validateOperation() 810 auto inputType = operands[inputIndexes[0]].type; in validateOperation() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_3/ |
D | if_simple.example.cpp | 15 .inputIndexes = {0, 3}, in get_test_model_true() 76 .inputIndexes = {0}, in get_test_model_true() 125 .inputIndexes = {0}, in get_test_model_true() 190 .inputIndexes = {0, 5}, in get_test_model_true_all_inputs_as_internal() 285 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 334 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 399 .inputIndexes = {0, 3}, in get_test_model_true_all_outputs_as_internal() 494 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 543 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 608 .inputIndexes = {0, 3}, in get_test_model_true_relaxed() [all …]
|
D | if_constant.example.cpp | 15 .inputIndexes = {3, 4}, in get_test_model_copy_true() 86 .inputIndexes = {0, 1}, in get_test_model_copy_true() 135 .inputIndexes = {0, 1}, in get_test_model_copy_true() 200 .inputIndexes = {3, 4}, in get_test_model_copy_true_relaxed() 271 .inputIndexes = {0, 1}, in get_test_model_copy_true_relaxed() 320 .inputIndexes = {0, 1}, in get_test_model_copy_true_relaxed() 385 .inputIndexes = {3, 4}, in get_test_model_copy_true_float16() 456 .inputIndexes = {0, 1}, in get_test_model_copy_true_float16() 505 .inputIndexes = {0, 1}, in get_test_model_copy_true_float16() 570 .inputIndexes = {3, 4}, in get_test_model_copy_true_int32() [all …]
|
D | hard_swish.example.cpp | 15 .inputIndexes = {0}, in get_test_model_simple() 62 .inputIndexes = {2}, in get_test_model_simple_all_inputs_as_internal() 143 .inputIndexes = {0}, in get_test_model_simple_float16() 190 .inputIndexes = {2}, in get_test_model_simple_float16_all_inputs_as_internal() 271 .inputIndexes = {0}, in get_test_model_simple_relaxed() 318 .inputIndexes = {2}, in get_test_model_simple_relaxed_all_inputs_as_internal() 399 .inputIndexes = {0}, in get_test_model_simple_quant8() 446 .inputIndexes = {2}, in get_test_model_simple_quant8_all_inputs_as_internal() 527 .inputIndexes = {0}, in get_test_model_simple_quant8_signed() 574 .inputIndexes = {2}, in get_test_model_simple_quant8_signed_all_inputs_as_internal() [all …]
|
D | l2_normalization_quant8_signed.example.cpp | 15 .inputIndexes = {0}, in get_test_model_dim4_axis0_quant8_signed() 72 .inputIndexes = {3}, in get_test_model_dim4_axis0_quant8_signed_all_inputs_as_internal() 163 .inputIndexes = {0}, in get_test_model_dim4_axis0_neg_quant8_signed() 220 .inputIndexes = {3}, in get_test_model_dim4_axis0_neg_quant8_signed_all_inputs_as_internal() 311 .inputIndexes = {0}, in get_test_model_dim4_axis1_quant8_signed() 368 .inputIndexes = {3}, in get_test_model_dim4_axis1_quant8_signed_all_inputs_as_internal() 459 .inputIndexes = {0}, in get_test_model_dim4_axis1_neg_quant8_signed() 516 .inputIndexes = {3}, in get_test_model_dim4_axis1_neg_quant8_signed_all_inputs_as_internal() 607 .inputIndexes = {0}, in get_test_model_dim4_axis2_quant8_signed() 664 .inputIndexes = {3}, in get_test_model_dim4_axis2_quant8_signed_all_inputs_as_internal() [all …]
|
D | rank.example.cpp | 15 .inputIndexes = {0}, in get_test_model_1d() 62 .inputIndexes = {2}, in get_test_model_1d_all_inputs_as_internal() 143 .inputIndexes = {0}, in get_test_model_1d_int32() 190 .inputIndexes = {0}, in get_test_model_1d_float16() 237 .inputIndexes = {2}, in get_test_model_1d_float16_all_inputs_as_internal() 318 .inputIndexes = {0}, in get_test_model_1d_quant8() 365 .inputIndexes = {2}, in get_test_model_1d_quant8_all_inputs_as_internal() 446 .inputIndexes = {0}, in get_test_model_1d_quant8_signed() 493 .inputIndexes = {2}, in get_test_model_1d_quant8_signed_all_inputs_as_internal() 574 .inputIndexes = {0}, in get_test_model_1d_2() [all …]
|
D | if_same_branch_model.example.cpp | 15 .inputIndexes = {0, 3}, in get_test_model_true() 76 .inputIndexes = {0}, in get_test_model_true() 141 .inputIndexes = {0, 5}, in get_test_model_true_all_inputs_as_internal() 236 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 301 .inputIndexes = {0, 3}, in get_test_model_true_all_outputs_as_internal() 396 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 461 .inputIndexes = {0, 3}, in get_test_model_true_relaxed() 522 .inputIndexes = {0}, in get_test_model_true_relaxed() 587 .inputIndexes = {0, 5}, in get_test_model_true_relaxed_all_inputs_as_internal() 682 .inputIndexes = {0}, in get_test_model_true_relaxed_all_inputs_as_internal() [all …]
|
D | while_infinite_loop.example.cpp | 15 .inputIndexes = {3}, in get_test_model() 76 .inputIndexes = {0, 1}, in get_test_model() 115 .inputIndexes = {0, 1}, in get_test_model() 190 .inputIndexes = {3}, in get_test_model_relaxed() 251 .inputIndexes = {0, 1}, in get_test_model_relaxed() 290 .inputIndexes = {0, 1}, in get_test_model_relaxed() 365 .inputIndexes = {3}, in get_test_model_float16() 426 .inputIndexes = {0, 1}, in get_test_model_float16() 465 .inputIndexes = {0, 1}, in get_test_model_float16() 540 .inputIndexes = {3}, in get_test_model_quant8() [all …]
|
D | if_no_value.example.cpp | 15 .inputIndexes = {3, 4}, in get_test_model() 86 .inputIndexes = {0, 1}, in get_test_model() 135 .inputIndexes = {0, 1}, in get_test_model() 200 .inputIndexes = {3, 4}, in get_test_model_relaxed() 271 .inputIndexes = {0, 1}, in get_test_model_relaxed() 320 .inputIndexes = {0, 1}, in get_test_model_relaxed() 385 .inputIndexes = {3, 4}, in get_test_model_float16() 456 .inputIndexes = {0, 1}, in get_test_model_float16() 505 .inputIndexes = {0, 1}, in get_test_model_float16() 570 .inputIndexes = {3, 4}, in get_test_model_int32() [all …]
|
D | cast_identity.example.cpp | 15 .inputIndexes = {0}, in get_test_model_float16() 62 .inputIndexes = {2}, in get_test_model_float16_all_inputs_as_internal() 143 .inputIndexes = {0}, in get_test_model_float32() 190 .inputIndexes = {2}, in get_test_model_float32_all_inputs_as_internal() 271 .inputIndexes = {0}, in get_test_model_float32_relaxed() 318 .inputIndexes = {2}, in get_test_model_float32_relaxed_all_inputs_as_internal() 399 .inputIndexes = {0}, in get_test_model_int32() 446 .inputIndexes = {0}, in get_test_model_bool8() 493 .inputIndexes = {0}, in get_test_model_quant8_asymm() 540 .inputIndexes = {2}, in get_test_model_quant8_asymm_all_inputs_as_internal() [all …]
|
D | pad_quant8_signed.example.cpp | 15 .inputIndexes = {0}, in get_test_model_quant8_signed() 72 .inputIndexes = {3}, in get_test_model_quant8_signed_all_inputs_as_internal() 163 .inputIndexes = {0, 1}, in get_test_model_quant8_signed_all_tensors_as_inputs() 220 .inputIndexes = {1, 3}, in get_test_model_quant8_signed_all_tensors_as_inputs_all_inputs_as_internal() 311 .inputIndexes = {0}, in get_test_model() 368 .inputIndexes = {3}, in get_test_model_all_inputs_as_internal() 459 .inputIndexes = {0, 1}, in get_test_model_all_tensors_as_inputs() 516 .inputIndexes = {1, 3}, in get_test_model_all_tensors_as_inputs_all_inputs_as_internal() 607 .inputIndexes = {0}, in get_test_model_2() 664 .inputIndexes = {3}, in get_test_model_all_inputs_as_internal_2() [all …]
|
D | softmax_quant8_signed.example.cpp | 15 .inputIndexes = {0}, in get_test_model() 72 .inputIndexes = {3}, in get_test_model_all_inputs_as_internal() 163 .inputIndexes = {0}, in get_test_model_2() 220 .inputIndexes = {3}, in get_test_model_all_inputs_as_internal_2() 311 .inputIndexes = {0}, in get_test_model_quant8_signed() 368 .inputIndexes = {3}, in get_test_model_quant8_signed_all_inputs_as_internal() 459 .inputIndexes = {0}, in get_test_model_quant8_signed_dim1_axis0() 516 .inputIndexes = {3}, in get_test_model_quant8_signed_dim1_axis0_all_inputs_as_internal() 607 .inputIndexes = {0}, in get_test_model_quant8_signed_dim3_axis2() 664 .inputIndexes = {3}, in get_test_model_quant8_signed_dim3_axis2_all_inputs_as_internal() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_3_cts_only/ |
D | if_simple_unknown_rank.example.cpp | 15 .inputIndexes = {0, 3}, in get_test_model_true() 76 .inputIndexes = {0}, in get_test_model_true() 125 .inputIndexes = {0}, in get_test_model_true() 190 .inputIndexes = {0, 5}, in get_test_model_true_all_inputs_as_internal() 285 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 334 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 399 .inputIndexes = {0, 3}, in get_test_model_true_all_outputs_as_internal() 494 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 543 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 608 .inputIndexes = {0, 3}, in get_test_model_true_relaxed() [all …]
|
D | if_simple_unknown_dimension.example.cpp | 15 .inputIndexes = {0, 3}, in get_test_model_true() 76 .inputIndexes = {0}, in get_test_model_true() 125 .inputIndexes = {0}, in get_test_model_true() 190 .inputIndexes = {0, 5}, in get_test_model_true_all_inputs_as_internal() 285 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 334 .inputIndexes = {0}, in get_test_model_true_all_inputs_as_internal() 399 .inputIndexes = {0, 3}, in get_test_model_true_all_outputs_as_internal() 494 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 543 .inputIndexes = {0}, in get_test_model_true_all_outputs_as_internal() 608 .inputIndexes = {0, 3}, in get_test_model_true_relaxed() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_2/ |
D | cast.example.cpp | 15 .inputIndexes = {0}, in get_test_model_float16_to_float16() 62 .inputIndexes = {2}, in get_test_model_float16_to_float16_all_inputs_as_internal() 143 .inputIndexes = {0}, in get_test_model_float16_to_float32() 190 .inputIndexes = {2}, in get_test_model_float16_to_float32_all_inputs_as_internal() 271 .inputIndexes = {0}, in get_test_model_float16_to_float32_relaxed() 318 .inputIndexes = {2}, in get_test_model_float16_to_float32_relaxed_all_inputs_as_internal() 399 .inputIndexes = {0}, in get_test_model_float16_to_int32() 446 .inputIndexes = {2}, in get_test_model_float16_to_int32_all_inputs_as_internal() 527 .inputIndexes = {0}, in get_test_model_float16_to_quant8() 574 .inputIndexes = {2}, in get_test_model_float16_to_quant8_all_inputs_as_internal() [all …]
|
D | l2_normalization_v1_2.example.cpp | 15 .inputIndexes = {0}, in get_test_model_dim4_axis3() 62 .inputIndexes = {2}, in get_test_model_dim4_axis3_all_inputs_as_internal() 143 .inputIndexes = {0}, in get_test_model_dim4_axis3_relaxed() 190 .inputIndexes = {2}, in get_test_model_dim4_axis3_relaxed_all_inputs_as_internal() 271 .inputIndexes = {0}, in get_test_model_dim4_axis3_float16() 318 .inputIndexes = {2}, in get_test_model_dim4_axis3_float16_all_inputs_as_internal() 399 .inputIndexes = {0}, in get_test_model_dim4_axis3_quant8() 446 .inputIndexes = {2}, in get_test_model_dim4_axis3_quant8_all_inputs_as_internal() 527 .inputIndexes = {0}, in get_test_model_dim3_axis2() 574 .inputIndexes = {2}, in get_test_model_dim3_axis2_all_inputs_as_internal() [all …]
|
D | l2_normalization_axis.example.cpp | 15 .inputIndexes = {0}, in get_test_model_dim4_axis0() 72 .inputIndexes = {3}, in get_test_model_dim4_axis0_all_inputs_as_internal() 163 .inputIndexes = {0}, in get_test_model_dim4_axis0_relaxed() 220 .inputIndexes = {3}, in get_test_model_dim4_axis0_relaxed_all_inputs_as_internal() 311 .inputIndexes = {0}, in get_test_model_dim4_axis0_float16() 368 .inputIndexes = {3}, in get_test_model_dim4_axis0_float16_all_inputs_as_internal() 459 .inputIndexes = {0}, in get_test_model_dim4_axis0_quant8() 516 .inputIndexes = {3}, in get_test_model_dim4_axis0_quant8_all_inputs_as_internal() 607 .inputIndexes = {0}, in get_test_model_dim4_axis0_neg() 664 .inputIndexes = {3}, in get_test_model_dim4_axis0_neg_all_inputs_as_internal() [all …]
|
D | expand_dims.example.cpp | 15 .inputIndexes = {0}, in get_test_model() 72 .inputIndexes = {3}, in get_test_model_all_inputs_as_internal() 163 .inputIndexes = {0}, in get_test_model_relaxed() 220 .inputIndexes = {3}, in get_test_model_relaxed_all_inputs_as_internal() 311 .inputIndexes = {0}, in get_test_model_quant8() 368 .inputIndexes = {3}, in get_test_model_quant8_all_inputs_as_internal() 459 .inputIndexes = {0}, in get_test_model_int32() 516 .inputIndexes = {0}, in get_test_model_float16() 573 .inputIndexes = {3}, in get_test_model_float16_all_inputs_as_internal() 664 .inputIndexes = {0}, in get_test_model_2() [all …]
|
D | softmax_v1_2.example.cpp | 15 .inputIndexes = {0}, in get_test_model() 72 .inputIndexes = {3}, in get_test_model_all_inputs_as_internal() 163 .inputIndexes = {0}, in get_test_model_dim1_axis0() 220 .inputIndexes = {3}, in get_test_model_dim1_axis0_all_inputs_as_internal() 311 .inputIndexes = {0}, in get_test_model_dim3_axis2() 368 .inputIndexes = {3}, in get_test_model_dim3_axis2_all_inputs_as_internal() 459 .inputIndexes = {0}, in get_test_model_relaxed() 516 .inputIndexes = {3}, in get_test_model_relaxed_all_inputs_as_internal() 607 .inputIndexes = {0}, in get_test_model_relaxed_dim1_axis0() 664 .inputIndexes = {3}, in get_test_model_relaxed_dim1_axis0_all_inputs_as_internal() [all …]
|
D | channel_shuffle.example.cpp | 15 .inputIndexes = {0}, in get_test_model_dim4_axis0() 82 .inputIndexes = {4}, in get_test_model_dim4_axis0_all_inputs_as_internal() 183 .inputIndexes = {0}, in get_test_model_dim4_axis0_neg() 250 .inputIndexes = {4}, in get_test_model_dim4_axis0_neg_all_inputs_as_internal() 351 .inputIndexes = {0}, in get_test_model_dim4_axis1() 418 .inputIndexes = {4}, in get_test_model_dim4_axis1_all_inputs_as_internal() 519 .inputIndexes = {0}, in get_test_model_dim4_axis1_neg() 586 .inputIndexes = {4}, in get_test_model_dim4_axis1_neg_all_inputs_as_internal() 687 .inputIndexes = {0}, in get_test_model_dim4_axis2() 754 .inputIndexes = {4}, in get_test_model_dim4_axis2_all_inputs_as_internal() [all …]
|
D | gather.example.cpp | 15 .inputIndexes = {0}, in get_test_model() 82 .inputIndexes = {4}, in get_test_model_all_inputs_as_internal() 183 .inputIndexes = {0}, in get_test_model_relaxed() 250 .inputIndexes = {4}, in get_test_model_relaxed_all_inputs_as_internal() 351 .inputIndexes = {0}, in get_test_model_quant8() 418 .inputIndexes = {4}, in get_test_model_quant8_all_inputs_as_internal() 519 .inputIndexes = {0}, in get_test_model_int32() 586 .inputIndexes = {0}, in get_test_model_float16() 653 .inputIndexes = {4}, in get_test_model_float16_all_inputs_as_internal() 754 .inputIndexes = {0}, in get_test_model_2() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/ |
D | stdout.txt.expect | 107 const std::vector<uint32_t> inputIndexes = {0}; 117 .inputIndexes = inputIndexes, 254 const std::vector<uint32_t> inputIndexes = {0}; 264 .inputIndexes = inputIndexes, 402 const std::vector<uint32_t> inputIndexes = {0}; 412 .inputIndexes = inputIndexes, 549 const std::vector<uint32_t> inputIndexes = {0, 1}; 559 .inputIndexes = inputIndexes, 696 const std::vector<uint32_t> inputIndexes = {0, 1}; 706 .inputIndexes = inputIndexes, [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/ |
D | stdout.txt.expect | 107 const std::vector<uint32_t> inputIndexes = {0}; 117 .inputIndexes = inputIndexes, 254 const std::vector<uint32_t> inputIndexes = {0}; 264 .inputIndexes = inputIndexes, 402 const std::vector<uint32_t> inputIndexes = {0}; 412 .inputIndexes = inputIndexes, 549 const std::vector<uint32_t> inputIndexes = {0, 1}; 559 .inputIndexes = inputIndexes, 696 const std::vector<uint32_t> inputIndexes = {0, 1}; 706 .inputIndexes = inputIndexes, [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/ |
D | stdout.txt.expect | 107 const std::vector<uint32_t> inputIndexes = {0}; 117 .inputIndexes = inputIndexes, 254 const std::vector<uint32_t> inputIndexes = {0}; 264 .inputIndexes = inputIndexes, 402 const std::vector<uint32_t> inputIndexes = {0}; 412 .inputIndexes = inputIndexes, 549 const std::vector<uint32_t> inputIndexes = {0, 1}; 559 .inputIndexes = inputIndexes, 696 const std::vector<uint32_t> inputIndexes = {0, 1}; 706 .inputIndexes = inputIndexes, [all …]
|