Lines Matching refs:Model
40 using PrepareModelMutation = std::function<void(Model*, ExecutionPreference*, Priority*)>;
45 const Model& model) { in validateGetSupportedOperations()
56 const Model& model, ExecutionPreference preference, in validatePrepareModel()
89 const Model& originalModel, const PrepareModelMutation& mutate) { in validate()
90 Model model = originalModel; in validate()
102 static uint32_t addOperand(Model* model) { in addOperand()
115 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand()
126 static size_t constantCopyExtraSize(const Model& model, size_t operandSize) { in constantCopyExtraSize()
154 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy()
282 size_t sizeForBinder(const V1_2::Model::ExtensionNameAndPrefix& extensionNameToPrefix) { in sizeForBinder()
292 size_t sizeForBinder(const Model& model) { in sizeForBinder()
335 static void mutateExecutionOrderTest(const sp<IDevice>& device, const Model& model) { in mutateExecutionOrderTest()
349 [operation](Model* model, ExecutionPreference*, Priority*) { in mutateExecutionOrderTest()
367 [operation](Model* model, ExecutionPreference*, Priority*) { in mutateExecutionOrderTest()
387 static void mutateOperandTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperandTypeTest()
394 [operand, invalidOperandType](Model* model, ExecutionPreference*, Priority*) { in mutateOperandTypeTest()
427 static void mutateOperandRankTest(const sp<IDevice>& device, const Model& model) { in mutateOperandRankTest()
436 [operand, invalidRank](Model* model, ExecutionPreference*, Priority*) { in mutateOperandRankTest()
470 static void mutateOperandScaleTest(const sp<IDevice>& device, const Model& model) { in mutateOperandScaleTest()
476 [operand, invalidScale](Model* model, ExecutionPreference*, Priority*) { in mutateOperandScaleTest()
511 static void mutateOperandZeroPointTest(const sp<IDevice>& device, const Model& model) { in mutateOperandZeroPointTest()
520 [operand, invalidZeroPoint](Model* model, ExecutionPreference*, Priority*) { in mutateOperandZeroPointTest()
529 static std::vector<OperandLifeTime> getInvalidLifeTimes(const Model& model, size_t modelSize, in getInvalidLifeTimes()
577 static void mutateOperandLifeTimeTest(const sp<IDevice>& device, const Model& model) { in mutateOperandLifeTimeTest()
588 [operand, invalidLifeTime](Model* model, ExecutionPreference*, Priority*) { in mutateOperandLifeTimeTest()
626 static std::optional<OperandLifeTime> getInputOutputLifeTime(const Model& model, size_t modelSize, in getInputOutputLifeTime()
665 static void mutateOperandInputOutputTest(const sp<IDevice>& device, const Model& model) { in mutateOperandInputOutputTest()
676 [operand, changedLifeTime](Model* model, ExecutionPreference*, Priority*) { in mutateOperandInputOutputTest()
699 static void mutateOperandNumberOfConsumersTest(const sp<IDevice>& device, const Model& model) { in mutateOperandNumberOfConsumersTest()
708 [operand, invalidNumberOfConsumers](Model* model, ExecutionPreference*, in mutateOperandNumberOfConsumersTest()
718 static void mutateOperandAddWriterTest(const sp<IDevice>& device, const Model& model) { in mutateOperandAddWriterTest()
732 [operation, badOutputNum](Model* model, ExecutionPreference*, Priority*) { in mutateOperandAddWriterTest()
828 static bool mutateOperationOperandTypeSkip(size_t operand, OperandType type, const Model& model) { in mutateOperationOperandTypeSkip()
935 static void mutateOperationOperandTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperationOperandTypeTest()
945 [operand, invalidOperandType](Model* model, ExecutionPreference*, Priority*) { in mutateOperationOperandTypeTest()
960 static void mutateOperationTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperationTypeTest()
967 [operation, invalidOperationType](Model* model, ExecutionPreference*, in mutateOperationTypeTest()
978 static void mutateOperationInputOperandIndexTest(const sp<IDevice>& device, const Model& model) { in mutateOperationInputOperandIndexTest()
986 [operation, input, invalidOperand](Model* model, ExecutionPreference*, in mutateOperationInputOperandIndexTest()
996 static void mutateOperationOutputOperandIndexTest(const sp<IDevice>& device, const Model& model) { in mutateOperationOutputOperandIndexTest()
1005 [operation, output, invalidOperand](Model* model, ExecutionPreference*, in mutateOperationOutputOperandIndexTest()
1015 static void mutateOperationRemoveWriteTest(const sp<IDevice>& device, const Model& model) { in mutateOperationRemoveWriteTest()
1025 [operation, outputNum](Model* model, ExecutionPreference*, Priority*) { in mutateOperationRemoveWriteTest()
1058 static void removeOperand(Model* model, uint32_t index) { in removeOperand()
1068 static bool removeOperandSkip(size_t operandIndex, const Model& model) { in removeOperandSkip()
1104 static void removeOperandTest(const sp<IDevice>& device, const Model& model) { in removeOperandTest()
1110 validate(device, message, model, [operand](Model* model, ExecutionPreference*, Priority*) { in removeOperandTest()
1118 static void removeOperation(Model* model, uint32_t index) { in removeOperation()
1125 static void removeOperationTest(const sp<IDevice>& device, const Model& model) { in removeOperationTest()
1129 [operation](Model* model, ExecutionPreference*, Priority*) { in removeOperationTest()
1209 static void removeOperationInputTest(const sp<IDevice>& device, const Model& model) { in removeOperationInputTest()
1220 [operation, input](Model* model, ExecutionPreference*, Priority*) { in removeOperationInputTest()
1231 static void removeOperationOutputTest(const sp<IDevice>& device, const Model& model) { in removeOperationOutputTest()
1239 [operation, output](Model* model, ExecutionPreference*, Priority*) { in removeOperationOutputTest()
1268 static void addOperationInputTest(const sp<IDevice>& device, const Model& model) { in addOperationInputTest()
1275 [operation](Model* model, ExecutionPreference*, Priority*) { in addOperationInputTest()
1285 static void addOperationOutputTest(const sp<IDevice>& device, const Model& model) { in addOperationOutputTest()
1290 [operation](Model* model, ExecutionPreference*, Priority*) { in addOperationOutputTest()
1305 static void mutateExecutionPreferenceTest(const sp<IDevice>& device, const Model& model) { in mutateExecutionPreferenceTest()
1310 [invalidPreference](Model*, ExecutionPreference* preference, Priority*) { in mutateExecutionPreferenceTest() argument
1323 static void mutateExecutionPriorityTest(const sp<IDevice>& device, const Model& model) { in mutateExecutionPriorityTest()
1328 [invalidPriority](Model*, ExecutionPreference*, Priority* priority) { in mutateExecutionPriorityTest() argument
1336 void validateModel(const sp<IDevice>& device, const Model& model) { in validateModel()