Lines Matching refs:Model
39 using PrepareModelMutation = std::function<void(Model*, ExecutionPreference*)>;
44 const Model& model) { in validateGetSupportedOperations()
55 const Model& model, ExecutionPreference preference) { in validatePrepareModel()
82 const Model& originalModel, const PrepareModelMutation& mutate) { in validate()
83 Model model = originalModel; in validate()
94 static uint32_t addOperand(Model* model) { in addOperand()
107 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand()
118 static size_t constantCopyExtraSize(const Model& model, size_t operandSize) { in constantCopyExtraSize()
146 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy()
235 size_t sizeForBinder(const Model& model) { in sizeForBinder()
279 static void mutateExecutionOrderTest(const sp<IDevice>& device, const V1_1::Model& model) { in mutateExecutionOrderTest()
292 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest()
309 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest()
329 static void mutateOperandTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperandTypeTest()
336 [operand, invalidOperandType](Model* model, ExecutionPreference*) { in mutateOperandTypeTest()
361 static void mutateOperandRankTest(const sp<IDevice>& device, const Model& model) { in mutateOperandRankTest()
367 [operand, invalidRank](Model* model, ExecutionPreference*) { in mutateOperandRankTest()
391 static void mutateOperandScaleTest(const sp<IDevice>& device, const Model& model) { in mutateOperandScaleTest()
397 [operand, invalidScale](Model* model, ExecutionPreference*) { in mutateOperandScaleTest()
420 static void mutateOperandZeroPointTest(const sp<IDevice>& device, const Model& model) { in mutateOperandZeroPointTest()
429 [operand, invalidZeroPoint](Model* model, ExecutionPreference*) { in mutateOperandZeroPointTest()
438 static std::vector<OperandLifeTime> getInvalidLifeTimes(const Model& model, size_t modelSize, in getInvalidLifeTimes()
484 static void mutateOperandLifeTimeTest(const sp<IDevice>& device, const V1_1::Model& model) { in mutateOperandLifeTimeTest()
495 [operand, invalidLifeTime](Model* model, ExecutionPreference*) { in mutateOperandLifeTimeTest()
533 static std::optional<OperandLifeTime> getInputOutputLifeTime(const Model& model, size_t modelSize, in getInputOutputLifeTime()
570 static void mutateOperandInputOutputTest(const sp<IDevice>& device, const V1_1::Model& model) { in mutateOperandInputOutputTest()
581 [operand, changedLifeTime](Model* model, ExecutionPreference*) { in mutateOperandInputOutputTest()
605 const V1_1::Model& model) { in mutateOperandNumberOfConsumersTest()
614 [operand, invalidNumberOfConsumers](Model* model, ExecutionPreference*) { in mutateOperandNumberOfConsumersTest()
623 static void mutateOperandAddWriterTest(const sp<IDevice>& device, const V1_1::Model& model) { in mutateOperandAddWriterTest()
636 [operation, badOutputNum](Model* model, ExecutionPreference*) { in mutateOperandAddWriterTest()
709 static bool mutateOperationOperandTypeSkip(size_t operand, const Model& model) { in mutateOperationOperandTypeSkip()
723 static void mutateOperationOperandTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperationOperandTypeTest()
739 [operand, invalidOperandType](Model* model, ExecutionPreference*) { in mutateOperationOperandTypeTest()
755 static void mutateOperationTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperationTypeTest()
762 [operation, invalidOperationType](Model* model, ExecutionPreference*) { in mutateOperationTypeTest()
772 static void mutateOperationInputOperandIndexTest(const sp<IDevice>& device, const Model& model) { in mutateOperationInputOperandIndexTest()
780 [operation, input, invalidOperand](Model* model, ExecutionPreference*) { in mutateOperationInputOperandIndexTest()
789 static void mutateOperationOutputOperandIndexTest(const sp<IDevice>& device, const Model& model) { in mutateOperationOutputOperandIndexTest()
797 [operation, output, invalidOperand](Model* model, ExecutionPreference*) { in mutateOperationOutputOperandIndexTest()
806 static void mutateOperationRemoveWriteTest(const sp<IDevice>& device, const V1_1::Model& model) { in mutateOperationRemoveWriteTest()
816 [operation, outputNum](Model* model, ExecutionPreference*) { in mutateOperationRemoveWriteTest()
849 static void removeOperand(Model* model, uint32_t index) { in removeOperand()
859 static void removeOperandTest(const sp<IDevice>& device, const Model& model) { in removeOperandTest()
863 [operand](Model* model, ExecutionPreference*) { removeOperand(model, operand); }); in removeOperandTest()
869 static void removeOperation(Model* model, uint32_t index) { in removeOperation()
876 static void removeOperationTest(const sp<IDevice>& device, const Model& model) { in removeOperationTest()
879 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in removeOperationTest()
887 static void removeOperationInputTest(const sp<IDevice>& device, const Model& model) { in removeOperationInputTest()
902 [operation, input](Model* model, ExecutionPreference*) { in removeOperationInputTest()
913 static void removeOperationOutputTest(const sp<IDevice>& device, const Model& model) { in removeOperationOutputTest()
920 [operation, output](Model* model, ExecutionPreference*) { in removeOperationOutputTest()
935 static void addOperationInputTest(const sp<IDevice>& device, const Model& model) { in addOperationInputTest()
938 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in addOperationInputTest()
948 static void addOperationOutputTest(const sp<IDevice>& device, const Model& model) { in addOperationOutputTest()
952 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in addOperationOutputTest()
967 static void mutateExecutionPreferenceTest(const sp<IDevice>& device, const Model& model) { in mutateExecutionPreferenceTest()
972 [invalidPreference](Model*, ExecutionPreference* preference) { in mutateExecutionPreferenceTest() argument
980 void validateModel(const sp<IDevice>& device, const Model& model) { in validateModel()