Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 2358) sorted by relevance

12345678910>>...95

/aosp12/packages/modules/NeuralNetworks/runtime/test/generated/maskrcnn/
H A Dmaskrcnn2go_quantized_const_data.cpp2 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 …]
/aosp12/hardware/interfaces/neuralnetworks/1.0/vts/functional/
H A DValidateModel.cpp69 mutate(&model); in validate()
272 validate(device, message, model, [operation](Model* model) { in mutateExecutionOrderTest() argument
289 validate(device, message, model, [operation](Model* model) { in mutateExecutionOrderTest() argument
344 validate(device, message, model, [operand, invalidRank](Model* model) { in mutateOperandRankTest() argument
373 validate(device, message, model, [operand, invalidScale](Model* model) { in mutateOperandScaleTest() argument
463 getInvalidLifeTimes(model, modelSize, model.operands[operand]); in mutateOperandLifeTimeTest()
823 [operand](Model* model) { removeOperand(model, operand); }); in removeOperandTest() argument
860 validate(device, message, model, [operation, input](Model* model) { in removeOperationInputTest() argument
877 validate(device, message, model, [operation, output](Model* model) { in removeOperationOutputTest() argument
895 validate(device, message, model, [operation](Model* model) { in addOperationInputTest() argument
[all …]
/aosp12/hardware/interfaces/neuralnetworks/1.1/vts/functional/
H A DValidateModel.cpp83 Model model = originalModel; in validate() local
85 mutate(&model, &preference); in validate()
108 uint32_t index = addOperand(model); in addOperand()
292 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest() argument
309 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest() argument
488 getInvalidLifeTimes(model, modelSize, model.operands[operand]); in mutateOperandLifeTimeTest()
574 getInputOutputLifeTime(model, modelSize, model.operands[operand]); in mutateOperandInputOutputTest()
863 [operand](Model* model, ExecutionPreference*) { removeOperand(model, operand); }); in removeOperandTest() argument
879 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in removeOperationTest() argument
938 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in addOperationInputTest() argument
[all …]
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/
H A DValidateModel.cpp84 Model model = originalModel; in validate() local
86 mutate(&model, &preference); in validate()
109 uint32_t index = addOperand(model); in addOperand()
331 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest() argument
348 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest() argument
557 getInvalidLifeTimes(model, modelSize, model.operands[operand]); in mutateOperandLifeTimeTest()
643 getInputOutputLifeTime(model, modelSize, model.operands[operand]); in mutateOperandInputOutputTest()
1032 [operand](Model* model, ExecutionPreference*) { removeOperand(model, operand); }); in removeOperandTest() argument
1048 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in removeOperationTest() argument
1183 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in addOperationInputTest() argument
[all …]
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DValidateModel.cpp90 Model model = originalModel; in validate() local
102 static uint32_t addOperand(Model* model) { in addOperand() argument
116 uint32_t index = addOperand(model); in addOperand()
295 size += sizeForBinder(model.main); in sizeForBinder()
298 size += sizeForBinder(model.pools); in sizeForBinder()
435 validate(device, message, model, in mutateOperandRankTest()
475 validate(device, message, model, in mutateOperandScaleTest()
581 getInvalidLifeTimes(model, modelSize, model.main.operands[operand]); in mutateOperandLifeTimeTest()
669 getInputOutputLifeTime(model, modelSize, model.main.operands[operand]); in mutateOperandInputOutputTest()
1110 validate(device, message, model, [operand](Model* model, ExecutionPreference*, Priority*) { in removeOperandTest() argument
[all …]
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/tests/P_variation/
H A Dstdout.txt.expect12 // Generated model constructor
51 assert(model->isValid());
126 assert(model->isValid());
203 assert(model->isValid());
278 assert(model->isValid());
355 assert(model->isValid());
430 assert(model->isValid());
507 assert(model->isValid());
586 assert(model->isValid());
663 assert(model->isValid());
[all …]
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DValidateModel.cpp108 static uint32_t addOperand(Model* model) { in addOperand() argument
109 model->main.operands.push_back({ in addOperand()
121 uint32_t index = addOperand(model); in addOperand()
302 size += sizeForBinder(model.main); in sizeForBinder()
305 size += sizeForBinder(model.pools); in sizeForBinder()
441 validate(device, message, model, in mutateOperandRankTest()
481 validate(device, message, model, in mutateOperandScaleTest()
587 getInvalidLifeTimes(model, modelSize, model.main.operands[operand]); in mutateOperandLifeTimeTest()
680 getInputOutputLifeTime(model, modelSize, model.main.operands[operand]); in mutateOperandInputOutputTest()
1038 model->main.operands.erase(model->main.operands.begin() + index); in removeOperand()
[all …]
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/tests/P_implicit_variation/
H A Dstdout.txt.expect12 // Generated model constructor
51 assert(model->isValid());
126 assert(model->isValid());
203 assert(model->isValid());
278 assert(model->isValid());
355 assert(model->isValid());
430 assert(model->isValid());
507 assert(model->isValid());
586 assert(model->isValid());
663 assert(model->isValid());
[all …]
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/tests/P_naming/
H A Dstdout.txt.expect12 // Generated model constructor
51 assert(model->isValid());
126 assert(model->isValid());
203 assert(model->isValid());
278 assert(model->isValid());
355 assert(model->isValid());
430 assert(model->isValid());
507 assert(model->isValid());
586 assert(model->isValid());
663 assert(model->isValid());
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestCompliance.cpp93 WrapperModel model; in TEST_F() local
100 ASSERT_TRUE(model.isValid()); in TEST_F()
101 model.finish(); in TEST_F()
107 WrapperModel model; in TEST_F() local
114 ASSERT_TRUE(model.isValid()); in TEST_F()
115 model.finish(); in TEST_F()
121 WrapperModel model; in TEST_F() local
132 model.finish(); in TEST_F()
158 WrapperModel model; in TEST_F() local
167 model.finish(); in TEST_F()
[all …]
H A DTestValidateModel.cpp29 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()
3058 ASSERT_EQ(ANeuralNetworksModel_finish(model), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
H A DTestMemory.cpp59 WrapperModel model; in TEST_F() local
63 auto a = model.addOperand(&matrixType); in TEST_F()
64 auto b = model.addOperand(&matrixType); in TEST_F()
65 auto c = model.addOperand(&matrixType); in TEST_F()
66 auto d = model.addOperand(&matrixType); in TEST_F()
67 auto e = model.addOperand(&matrixType); in TEST_F()
76 ASSERT_TRUE(model.isValid()); in TEST_F()
77 model.finish(); in TEST_F()
122 WrapperModel model; in TEST_F() local
139 ASSERT_TRUE(model.isValid()); in TEST_F()
[all …]
H A DTestFree.cpp31 ANeuralNetworksModel* model = nullptr; in createUnfinishedModel() local
48 return model; in createUnfinishedModel()
52 ANeuralNetworksModel* const model = createUnfinishedModel(); in createFinishedModel() local
54 return model; in createFinishedModel()
85 ANeuralNetworksModel_free(model); in TEST()
89 ANeuralNetworksModel* const model = createFinishedModel(); in TEST() local
95 ANeuralNetworksModel_free(model); in TEST()
99 ANeuralNetworksModel* const model = createFinishedModel(); in TEST() local
109 ANeuralNetworksModel_free(model); in TEST()
113 ANeuralNetworksModel* const model = createFinishedModel(); in TEST() local
[all …]
/aosp12/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
H A DFormattedStringModelTest.java34 private FormattedStringModel model; field in FormattedStringModelTest
39 model = new FormattedStringModel(context); in setUp()
44 model = null; in tearDown()
49 assertEquals("0", model.getFormattedNumber(0)); in positiveFormattedNumberWithNoPadding()
50 assertEquals("9", model.getFormattedNumber(9)); in positiveFormattedNumberWithNoPadding()
51 assertEquals("10", model.getFormattedNumber(10)); in positiveFormattedNumberWithNoPadding()
52 assertEquals("99", model.getFormattedNumber(99)); in positiveFormattedNumberWithNoPadding()
53 assertEquals("100", model.getFormattedNumber(100)); in positiveFormattedNumberWithNoPadding()
58 assertEquals("0", model.getFormattedNumber(false, 0, 1)); in positiveFormattedNumber()
62 assertEquals("9", model.getFormattedNumber(false, 9, 1)); in positiveFormattedNumber()
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
H A Dmobilenet_quantized.mod.py3 model = Model() variable
225 model = model.Operation("CONV_2D", i88, i2, i1, i104, i105, i106, i107).To(i0) variable
227 model = model.Operation("CONV_2D", i27, i32, i31, i113, i114, i115, i116).To(i30) variable
229 model = model.Operation("CONV_2D", i33, i38, i37, i122, i123, i124, i125).To(i36) variable
231 model = model.Operation("CONV_2D", i39, i44, i43, i131, i132, i133, i134).To(i42) variable
233 model = model.Operation("CONV_2D", i45, i50, i49, i140, i141, i142, i143).To(i48) variable
235 model = model.Operation("CONV_2D", i51, i56, i55, i149, i150, i151, i152).To(i54) variable
245 model = model.Operation("CONV_2D", i3, i8, i7, i194, i195, i196, i197).To(i6) variable
247 model = model.Operation("CONV_2D", i9, i14, i13, i203, i204, i205, i206).To(i12) variable
254 model = model.Operation("RESHAPE", i82, i87).To(i86) variable
[all …]
H A Dmobilenet_224_gender_basic_fixed.mod.py3 model = Model() variable
222 model = model.Operation("CONV_2D", i86, i2, i1, i87, i88, i89, i90).To(i0) variable
224 model = model.Operation("CONV_2D", i27, i32, i31, i96, i97, i98, i99).To(i30) variable
226 model = model.Operation("CONV_2D", i33, i38, i37, i105, i106, i107, i108).To(i36) variable
228 model = model.Operation("CONV_2D", i39, i44, i43, i114, i115, i116, i117).To(i42) variable
230 model = model.Operation("CONV_2D", i45, i50, i49, i123, i124, i125, i126).To(i48) variable
232 model = model.Operation("CONV_2D", i51, i56, i55, i132, i133, i134, i135).To(i54) variable
234 model = model.Operation("CONV_2D", i57, i62, i61, i141, i142, i143, i144).To(i60) variable
242 model = model.Operation("CONV_2D", i3, i8, i7, i177, i178, i179, i180).To(i6) variable
244 model = model.Operation("CONV_2D", i9, i14, i13, i186, i187, i188, i189).To(i12) variable
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
H A Dmobilenet_224_gender_basic_fixed_relaxed.mod.py19 model = Model() variable
238 model = model.Operation("CONV_2D", i86, i2, i1, i87, i88, i89, i90).To(i0) variable
240 model = model.Operation("CONV_2D", i27, i32, i31, i96, i97, i98, i99).To(i30) variable
242 model = model.Operation("CONV_2D", i33, i38, i37, i105, i106, i107, i108).To(i36) variable
244 model = model.Operation("CONV_2D", i39, i44, i43, i114, i115, i116, i117).To(i42) variable
246 model = model.Operation("CONV_2D", i45, i50, i49, i123, i124, i125, i126).To(i48) variable
248 model = model.Operation("CONV_2D", i51, i56, i55, i132, i133, i134, i135).To(i54) variable
258 model = model.Operation("CONV_2D", i3, i8, i7, i177, i178, i179, i180).To(i6) variable
260 model = model.Operation("CONV_2D", i9, i14, i13, i186, i187, i188, i189).To(i12) variable
267 model = model.Operation("LOGISTIC", i82).To(i85) variable
[all …]
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/tests/P_internal/
H A Dstdout.txt.expect12 // Generated model constructor
16 void CreateModel(Model *model) {
20 auto o0 = model->addOperand(&type0);
21 auto o1 = model->addOperand(&type0);
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);
57 model->identifyInputsAndOutputs(
[all …]
/aosp12/system/bt/vendor_libs/test_vendor_lib/
H A DAndroid.bp28 "model/devices/beacon.cc",
29 "model/devices/beacon_swarm.cc",
30 "model/devices/broken_adv.cc",
31 "model/devices/car_kit.cc",
32 "model/devices/classic.cc",
33 "model/devices/device.cc",
36 "model/devices/h4_parser.cc",
39 "model/devices/keyboard.cc",
41 "model/devices/loopback.cc",
45 "model/devices/sniffer.cc",
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DFavoritesModelTest.kt63 private lateinit var model: FavoritesModel
71 model.attachAdapter(adapter)
87 assertEquals(model.favorites, model.elements.take(dividerIndex).map {
110 model.changeFavoriteStatus(id, false)
121 model.changeFavoriteStatus(id, false)
132 model.changeFavoriteStatus(id, false)
134 val lastPos = model.elements.size - 1
190 ), model.elements.takeLast(2))
213 model.changeFavoriteStatus(id, true)
225 model.changeFavoriteStatus(id, true)
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
H A Dstrided_slice_quant8_signed.mod.py17 model = Model() variable
42 model = Model() variable
67 model = Model() variable
92 model = Model() variable
117 model = Model() variable
142 model = Model() variable
167 model = Model() variable
192 model = Model() variable
217 model = Model() variable
242 model = Model() variable
[all …]
H A Dwhile_sum_of_powers_quant8.mod.py44 model = Model()
45 model.IdentifyInputs(xi, j, i, x)
46 model.IdentifyOutputs(out)
48 return model
57 model = Model()
62 return model
70 model = Model()
72 model.IdentifyOutputs(out)
74 return model
89 model = Model()
[all …]
H A Dwhile_sum_of_powers_quant8_signed.mod.py44 model = Model()
45 model.IdentifyInputs(xi, j, i, x)
46 model.IdentifyOutputs(out)
48 return model
57 model = Model()
62 return model
70 model = Model()
72 model.IdentifyOutputs(out)
74 return model
89 model = Model()
[all …]
H A Dwhile_sum_of_powers.mod.py40 model = Model()
41 model.IdentifyInputs(xi, j, i, x)
42 model.IdentifyOutputs(out)
44 return model
53 model = Model()
58 return model
66 model = Model()
68 model.IdentifyOutputs(out)
70 return model
84 model = Model()
[all …]
/aosp12/frameworks/av/media/libaaudio/tests/
H A Dtest_clock_model.cpp41 model.setSampleRate(SAMPLE_RATE); in SetUp()
42 model.setFramesPerBurst(HW_FRAMES_PER_BURST); in SetUp()
56 model.start(startTimeNanos); 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()
118 model.start(startTime); in TEST_F()
123 int64_t time = model.convertPositionToTime(position); in TEST_F()
127 position = model.convertTimeToPosition(time); in TEST_F()
134 model.start(startTime); in TEST_F()
[all …]

12345678910>>...95