/frameworks/ml/nn/runtime/test/generated/maskrcnn/ |
D | maskrcnn2go_quantized_const_data.cpp | 2 ANeuralNetworksModel_setOperandValue(model, 0, buffer_0, 1); 4 ANeuralNetworksModel_setOperandValue(model, 1, buffer_1, 1); 6 ANeuralNetworksModel_setOperandValue(model, 6, buffer_6, 16); 32 ANeuralNetworksModel_setOperandValue(model, 9, buffer_9, 432); 37 ANeuralNetworksModel_setOperandValue(model, 10, buffer_10, 64); 39 ANeuralNetworksModel_setOperandValue(model, 11, buffer_11, 4); 41 ANeuralNetworksModel_setOperandValue(model, 12, buffer_12, 4); 58 ANeuralNetworksModel_setOperandValue(model, 14, buffer_14, 256); 64 ANeuralNetworksModel_setOperandValue(model, 15, buffer_15, 64); 66 ANeuralNetworksModel_setOperandValue(model, 16, buffer_16, 4); [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestCompliance.cpp | 93 WrapperModel model; in TEST_F() local 94 auto op1 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F() 95 auto op2 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F() 96 auto op3 = model.addOperand(&kTypeTensorFloat); in TEST_F() 97 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F() 98 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F() 99 model.identifyInputsAndOutputs({op1, op2}, {op3}); in TEST_F() 100 ASSERT_TRUE(model.isValid()); in TEST_F() 101 model.finish(); in TEST_F() 102 testAvailableSinceV1_2(model); in TEST_F() [all …]
|
D | TestMemory.cpp | 58 WrapperModel model; in TEST_F() local 62 auto a = model.addOperand(&matrixType); in TEST_F() 63 auto b = model.addOperand(&matrixType); in TEST_F() 64 auto c = model.addOperand(&matrixType); in TEST_F() 65 auto d = model.addOperand(&matrixType); in TEST_F() 66 auto e = model.addOperand(&matrixType); in TEST_F() 67 auto f = model.addOperand(&scalarType); in TEST_F() 69 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F() 70 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F() 71 model.setOperandValue(f, &activation, sizeof(activation)); in TEST_F() [all …]
|
D | TestValidateModel.cpp | 29 ANeuralNetworksModel* model = nullptr; in TEST_F() local 30 ASSERT_EQ(ANeuralNetworksModel_create(&model), ANEURALNETWORKS_NO_ERROR); in TEST_F() 36 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_0), ANEURALNETWORKS_NO_ERROR); in TEST_F() 42 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_1), ANEURALNETWORKS_NO_ERROR); in TEST_F() 50 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_2), ANEURALNETWORKS_NO_ERROR); in TEST_F() 58 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_3), ANEURALNETWORKS_NO_ERROR); in TEST_F() 66 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_4), ANEURALNETWORKS_NO_ERROR); in TEST_F() 74 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_5), ANEURALNETWORKS_NO_ERROR); in TEST_F() 82 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_6), ANEURALNETWORKS_NO_ERROR); in TEST_F() 90 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_7), ANEURALNETWORKS_NO_ERROR); in TEST_F() [all …]
|
D | TestFree.cpp | 31 ANeuralNetworksModel* model = nullptr; in createUnfinishedModel() local 32 EXPECT_EQ(ANeuralNetworksModel_create(&model), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel() 37 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &type), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel() 38 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &type), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel() 43 ANeuralNetworksModel_addOperation(model, ANEURALNETWORKS_FLOOR, 1, inList, 1, outList), in createUnfinishedModel() 45 EXPECT_EQ(ANeuralNetworksModel_identifyInputsAndOutputs(model, 1, inList, 1, outList), in createUnfinishedModel() 48 return model; in createUnfinishedModel() 52 ANeuralNetworksModel* const model = createUnfinishedModel(); in createFinishedModel() local 53 EXPECT_EQ(ANeuralNetworksModel_finish(model), ANEURALNETWORKS_NO_ERROR); in createFinishedModel() 54 return model; in createFinishedModel() [all …]
|
D | TestMemoryInternal.cpp | 117 WrapperModel model; in TEST_F() local 121 auto a = model.addOperand(&matrixType); in TEST_F() 122 auto b = model.addOperand(&matrixType); in TEST_F() 123 auto c = model.addOperand(&matrixType); in TEST_F() 124 auto d = model.addOperand(&matrixType); in TEST_F() 125 auto e = model.addOperand(&matrixType); in TEST_F() 126 auto f = model.addOperand(&scalarType); in TEST_F() 128 model.setOperandValueFromMemory(e, &weights, offsetForMatrix2, sizeof(Matrix3x4)); in TEST_F() 129 model.setOperandValueFromMemory(a, &weights, offsetForMatrix3, sizeof(Matrix3x4)); in TEST_F() 130 model.setOperandValue(f, &activation, sizeof(activation)); in TEST_F() [all …]
|
D | TestPartitioning.cpp | 282 uint32_t lookupOperation(const HidlModel& model, const Subgraph& subgraph, in lookupOperation() argument 287 [&model](uint32_t offset) { return &model.operandValues[offset]; }, operationIndex); in lookupOperation() 292 void dump(const char* name, const ModelBuilder* model) { in dump() argument 293 const HidlModel hidlModel = model->makeHidlModel(); in dump() 387 const Model& model, ExecutionPreference, Priority, const OptionalTimePoint&, in prepareModel_1_3() argument 392 for (const auto& operation : model.main.operations) { in prepareModel_1_3() 410 Return<void> getSupportedOperations_1_3(const Model& model, in getSupportedOperations_1_3() argument 412 if (!android::nn::validateModel(model)) { in getSupportedOperations_1_3() 416 cb(V1_3::ErrorStatus::NONE, getSupportedOperationsForSubgraph(model, model.main)); in getSupportedOperations_1_3() 433 std::vector<bool> getSupportedOperationsForSubgraph(const Model& model, in getSupportedOperationsForSubgraph() argument [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_variation/ |
D | stdout.txt.expect | 12 // Generated model constructor 16 void CreateModel_none(Model *model) { 22 auto op1 = model->addOperand(&type0); 23 auto op2 = model->addOperand(&type1); 24 auto op3 = model->addOperand(&type2); 25 auto param = model->addOperand(&type3); 26 auto param1 = model->addOperand(&type3); 27 auto param2 = model->addOperand(&type3); 28 auto act = model->addOperand(&type3); 29 auto layout = model->addOperand(&type3); [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_implicit_variation/ |
D | stdout.txt.expect | 12 // Generated model constructor 16 void CreateModel_relu(Model *model) { 22 auto op1 = model->addOperand(&type0); 23 auto op2 = model->addOperand(&type1); 24 auto op3 = model->addOperand(&type2); 25 auto param = model->addOperand(&type3); 26 auto param1 = model->addOperand(&type3); 27 auto param2 = model->addOperand(&type3); 28 auto act = model->addOperand(&type3); 29 auto layout = model->addOperand(&type3); [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_naming/ |
D | stdout.txt.expect | 12 // Generated model constructor 16 void CreateModel_model_name_nhwc_act_w_as_param_float(Model *model) { 22 auto op1 = model->addOperand(&type0); 23 auto op2 = model->addOperand(&type1); 24 auto op3 = model->addOperand(&type2); 25 auto param = model->addOperand(&type3); 26 auto param1 = model->addOperand(&type3); 27 auto param2 = model->addOperand(&type3); 28 auto act = model->addOperand(&type3); 29 auto layout = model->addOperand(&type3); [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_internal/ |
D | stdout.txt.expect | 12 // Generated model constructor 16 void CreateModel(Model *model) { 20 auto o0 = model->addOperand(&type0); 21 auto o1 = model->addOperand(&type0); 22 auto act = model->addOperand(&type1); 23 auto o2 = model->addOperand(&type0); 24 auto p0 = model->addOperand(&type0); 25 auto t5 = model->addOperand(&type0); 26 auto t6 = model->addOperand(&type0); 27 auto i2 = model->addOperand(&type0); [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_1/ |
D | mobilenet_224_gender_basic_fixed_relaxed.mod.py | 19 model = Model() variable 238 model = model.Operation("CONV_2D", i86, i2, i1, i87, i88, i89, i90).To(i0) variable 239 model = model.Operation("DEPTHWISE_CONV_2D", i0, i29, i28, i91, i92, i93, i94, i95).To(i27) variable 240 model = model.Operation("CONV_2D", i27, i32, i31, i96, i97, i98, i99).To(i30) variable 241 model = model.Operation("DEPTHWISE_CONV_2D", i30, i35, i34, i100, i101, i102, i103, i104).To(i33) variable 242 model = model.Operation("CONV_2D", i33, i38, i37, i105, i106, i107, i108).To(i36) variable 243 model = model.Operation("DEPTHWISE_CONV_2D", i36, i41, i40, i109, i110, i111, i112, i113).To(i39) variable 244 model = model.Operation("CONV_2D", i39, i44, i43, i114, i115, i116, i117).To(i42) variable 245 model = model.Operation("DEPTHWISE_CONV_2D", i42, i47, i46, i118, i119, i120, i121, i122).To(i45) variable 246 model = model.Operation("CONV_2D", i45, i50, i49, i123, i124, i125, i126).To(i48) variable [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_0/ |
D | mobilenet_quantized.mod.py | 3 model = Model() variable 225 model = model.Operation("CONV_2D", i88, i2, i1, i104, i105, i106, i107).To(i0) variable 226 model = model.Operation("DEPTHWISE_CONV_2D", i0, i29, i28, i108, i109, i110, i111, i112).To(i27) variable 227 model = model.Operation("CONV_2D", i27, i32, i31, i113, i114, i115, i116).To(i30) variable 228 model = model.Operation("DEPTHWISE_CONV_2D", i30, i35, i34, i117, i118, i119, i120, i121).To(i33) variable 229 model = model.Operation("CONV_2D", i33, i38, i37, i122, i123, i124, i125).To(i36) variable 230 model = model.Operation("DEPTHWISE_CONV_2D", i36, i41, i40, i126, i127, i128, i129, i130).To(i39) variable 231 model = model.Operation("CONV_2D", i39, i44, i43, i131, i132, i133, i134).To(i42) variable 232 model = model.Operation("DEPTHWISE_CONV_2D", i42, i47, i46, i135, i136, i137, i138, i139).To(i45) variable 233 model = model.Operation("CONV_2D", i45, i50, i49, i140, i141, i142, i143).To(i48) variable [all …]
|
D | mobilenet_224_gender_basic_fixed.mod.py | 3 model = Model() variable 222 model = model.Operation("CONV_2D", i86, i2, i1, i87, i88, i89, i90).To(i0) variable 223 model = model.Operation("DEPTHWISE_CONV_2D", i0, i29, i28, i91, i92, i93, i94, i95).To(i27) variable 224 model = model.Operation("CONV_2D", i27, i32, i31, i96, i97, i98, i99).To(i30) variable 225 model = model.Operation("DEPTHWISE_CONV_2D", i30, i35, i34, i100, i101, i102, i103, i104).To(i33) variable 226 model = model.Operation("CONV_2D", i33, i38, i37, i105, i106, i107, i108).To(i36) variable 227 model = model.Operation("DEPTHWISE_CONV_2D", i36, i41, i40, i109, i110, i111, i112, i113).To(i39) variable 228 model = model.Operation("CONV_2D", i39, i44, i43, i114, i115, i116, i117).To(i42) variable 229 model = model.Operation("DEPTHWISE_CONV_2D", i42, i47, i46, i118, i119, i120, i121, i122).To(i45) variable 230 model = model.Operation("CONV_2D", i45, i50, i49, i123, i124, i125, i126).To(i48) variable [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | strided_slice_quant8_signed.mod.py | 17 model = Model() variable 28 model = model.Operation("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisM… variable 42 model = Model() variable 53 model = model.Operation("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisM… variable 67 model = Model() variable 78 model = model.Operation("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisM… variable 92 model = Model() variable 103 model = model.Operation("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisM… variable 117 model = Model() variable 128 model = model.Operation("STRIDED_SLICE", i1, begins, ends, strides, beginMask, endMask, shrinkAxisM… variable [all …]
|
D | while_sum_of_powers_quant8_signed.mod.py | 44 model = Model() 45 model.IdentifyInputs(xi, j, i, x) 46 model.IdentifyOutputs(out) 47 model.Operation("LESS", j, i).To(out) 48 return model 57 model = Model() 58 model.IdentifyInputs(xi, j, i, x) 59 model.IdentifyOutputs(xi_out, j_out) 60 model.Operation("MUL", xi, x, 0).To(xi_out) 61 model.Operation("ADD", j, [1], 0).To(j_out) [all …]
|
D | while_sum_of_powers_quant8.mod.py | 44 model = Model() 45 model.IdentifyInputs(xi, j, i, x) 46 model.IdentifyOutputs(out) 47 model.Operation("LESS", j, i).To(out) 48 return model 57 model = Model() 58 model.IdentifyInputs(xi, j, i, x) 59 model.IdentifyOutputs(xi_out, j_out) 60 model.Operation("MUL", xi, x, 0).To(xi_out) 61 model.Operation("ADD", j, [1], 0).To(j_out) [all …]
|
D | while_sum_of_powers.mod.py | 40 model = Model() 41 model.IdentifyInputs(xi, j, i, x) 42 model.IdentifyOutputs(out) 43 model.Operation("LESS", j, i).To(out) 44 return model 53 model = Model() 54 model.IdentifyInputs(xi, j, i, x) 55 model.IdentifyOutputs(xi_out, j_out) 56 model.Operation("MUL", xi, x, 0).To(xi_out) 57 model.Operation("ADD", j, [1], 0).To(j_out) [all …]
|
D | fully_connected_quant8_signed.mod.py | 17 model = Model() variable 26 model = model.Operation("FULLY_CONNECTED", in0, weights, bias, act_relu).To(out0) variable 40 model = Model() variable 46 model = model.Operation("FULLY_CONNECTED", in0, weights, bias, act).To(out0) variable 59 model = Model() variable 65 model = model.Operation("FULLY_CONNECTED", in0, weights, bias, act).To(out0) variable 82 model = Model() variable 88 model = model.Operation("FULLY_CONNECTED", in0, weights, bias, act).To(out0) variable 101 model = Model() variable 107 model = model.Operation("FULLY_CONNECTED", in0, weights, bias, act).To(out0) variable [all …]
|
D | while_infinite_loop.mod.py | 31 model = Model() 32 model.IdentifyInputs(i, n) 33 model.IdentifyOutputs(out) 34 model.Operation("GREATER_EQUAL", i, n).To(out) 35 return model 41 model = Model() 42 model.IdentifyInputs(i, n) 43 model.IdentifyOutputs(i_out) 44 model.Operation("ADD", i, [1.0], 0).To(i_out) 45 return model [all …]
|
D | dequantize_quant8_signed.mod.py | 17 model = Model() variable 20 model = model.Operation("DEQUANTIZE", i1).To(i2) variable 35 model = Model().Operation("DEQUANTIZE", input0).To(output0) 40 model=model, 61 model = Model() variable 64 model = model.Operation("DEQUANTIZE", i1).To(i2) variable 87 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3)… variable 93 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) variable 97 model = model.Operation("DEQUANTIZE", zero_sized).To(o3) variable
|
/frameworks/av/media/libaaudio/tests/ |
D | test_clock_model.cpp | 41 model.setSampleRate(SAMPLE_RATE); in SetUp() 42 model.setFramesPerBurst(HW_FRAMES_PER_BURST); in SetUp() 56 model.start(startTimeNanos); in checkDriftingClock() 64 model.processTimestamp(startPositionFrames, markerTime); in checkDriftingClock() 65 ASSERT_EQ(startPositionFrames, model.convertTimeToPosition(markerTime)); in checkDriftingClock() 81 model.processTimestamp(alignedPosition, currentTimeNanos); in checkDriftingClock() 83 ASSERT_EQ(alignedPosition, model.convertTimeToPosition(currentTimeNanos)); in checkDriftingClock() 87 IsochronousClockModel model; member in ClockModelTestFixture 92 ASSERT_EQ(SAMPLE_RATE, model.getSampleRate()); in TEST_F() 93 ASSERT_EQ(HW_FRAMES_PER_BURST, model.getFramesPerBurst()); in TEST_F() [all …]
|
/frameworks/ml/nn/tools/test_generator/tests/P_backward_compatibility_float/ |
D | stdout.txt.expect | 12 // Generated model constructor 16 void CreateModel(Model *model) { 28 auto input = model->addOperand(&type0); 29 auto input_to_input_weights = model->addOperand(&type1); 30 auto input_to_forget_weights = model->addOperand(&type1); 31 auto input_to_cell_weights = model->addOperand(&type1); 32 auto input_to_output_weights = model->addOperand(&type1); 33 auto recurrent_to_intput_weights = model->addOperand(&type2); 34 auto recurrent_to_forget_weights = model->addOperand(&type2); 35 auto recurrent_to_cell_weights = model->addOperand(&type2); [all …]
|
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/ |
D | GenericSoundModelTest.java | 95 GenericSoundModel model = new_sound_model(); in testUpdateGenericSoundModel() local 98 soundTriggerService.updateSoundModel(model); in testUpdateGenericSoundModel() 99 loadedModelUuids.add(model.uuid); in testUpdateGenericSoundModel() 103 soundTriggerService.getSoundModel(new ParcelUuid(model.uuid)); in testUpdateGenericSoundModel() 104 assertEquals(model, returnedModel); in testUpdateGenericSoundModel() 109 GenericSoundModel model = new_sound_model(); in testDeleteGenericSoundModel() local 112 soundTriggerService.updateSoundModel(model); in testDeleteGenericSoundModel() 113 loadedModelUuids.add(model.uuid); in testDeleteGenericSoundModel() 116 soundTriggerService.deleteSoundModel(new ParcelUuid(model.uuid)); in testDeleteGenericSoundModel() 117 loadedModelUuids.remove(model.uuid); in testDeleteGenericSoundModel() [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | div_v1_2.mod.py | 18 model = Model() variable 23 model = model.Operation("DIV", i1, i2, act).To(i3) variable 24 model = model.RelaxedExecution(False) variable 40 model = Model() variable 45 model = model.Operation("DIV", i1, i2, act).To(i3) variable 69 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3… variable 75 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) variable 80 model = model.Operation("DIV", zero_sized, i2, 0).To(o3) variable 95 model = Model("by_zero").Operation("DIV", input0, input1, 0).To(output) variable
|