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()
83 const Model& originalModel, const PrepareModelMutation& mutate) { in validate()
84 Model model = originalModel; in validate()
95 static uint32_t addOperand(Model* model) { in addOperand()
108 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand()
119 static size_t constantCopyExtraSize(const Model& model, size_t operandSize) { in constantCopyExtraSize()
147 static void becomeConstantCopy(Model* model, Operand* operand) { in becomeConstantCopy()
263 size_t sizeForBinder(const Model::ExtensionNameAndPrefix& extensionNameToPrefix) { in sizeForBinder()
273 size_t sizeForBinder(const Model& model) { in sizeForBinder()
318 static void mutateExecutionOrderTest(const sp<IDevice>& device, const Model& model) { in mutateExecutionOrderTest()
331 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest()
348 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in mutateExecutionOrderTest()
368 static void mutateOperandTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperandTypeTest()
375 [operand, invalidOperandType](Model* model, ExecutionPreference*) { in mutateOperandTypeTest()
408 static void mutateOperandRankTest(const sp<IDevice>& device, const Model& model) { in mutateOperandRankTest()
417 [operand, invalidRank](Model* model, ExecutionPreference*) { in mutateOperandRankTest()
449 static void mutateOperandScaleTest(const sp<IDevice>& device, const Model& model) { in mutateOperandScaleTest()
455 [operand, invalidScale](Model* model, ExecutionPreference*) { in mutateOperandScaleTest()
489 static void mutateOperandZeroPointTest(const sp<IDevice>& device, const Model& model) { in mutateOperandZeroPointTest()
498 [operand, invalidZeroPoint](Model* model, ExecutionPreference*) { in mutateOperandZeroPointTest()
507 static std::vector<OperandLifeTime> getInvalidLifeTimes(const Model& model, size_t modelSize, in getInvalidLifeTimes()
553 static void mutateOperandLifeTimeTest(const sp<IDevice>& device, const Model& model) { in mutateOperandLifeTimeTest()
564 [operand, invalidLifeTime](Model* model, ExecutionPreference*) { in mutateOperandLifeTimeTest()
602 static std::optional<OperandLifeTime> getInputOutputLifeTime(const Model& model, size_t modelSize, in getInputOutputLifeTime()
639 static void mutateOperandInputOutputTest(const sp<IDevice>& device, const Model& model) { in mutateOperandInputOutputTest()
650 [operand, changedLifeTime](Model* model, ExecutionPreference*) { in mutateOperandInputOutputTest()
673 static void mutateOperandNumberOfConsumersTest(const sp<IDevice>& device, const Model& model) { in mutateOperandNumberOfConsumersTest()
682 [operand, invalidNumberOfConsumers](Model* model, ExecutionPreference*) { in mutateOperandNumberOfConsumersTest()
691 static void mutateOperandAddWriterTest(const sp<IDevice>& device, const Model& model) { in mutateOperandAddWriterTest()
704 [operation, badOutputNum](Model* model, ExecutionPreference*) { in mutateOperandAddWriterTest()
800 static bool mutateOperationOperandTypeSkip(size_t operand, OperandType type, const Model& model) { in mutateOperationOperandTypeSkip()
871 static void mutateOperationOperandTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperationOperandTypeTest()
881 [operand, invalidOperandType](Model* model, ExecutionPreference*) { in mutateOperationOperandTypeTest()
896 static void mutateOperationTypeTest(const sp<IDevice>& device, const Model& model) { in mutateOperationTypeTest()
903 [operation, invalidOperationType](Model* model, ExecutionPreference*) { in mutateOperationTypeTest()
913 static void mutateOperationInputOperandIndexTest(const sp<IDevice>& device, const Model& model) { in mutateOperationInputOperandIndexTest()
921 [operation, input, invalidOperand](Model* model, ExecutionPreference*) { in mutateOperationInputOperandIndexTest()
930 static void mutateOperationOutputOperandIndexTest(const sp<IDevice>& device, const Model& model) { in mutateOperationOutputOperandIndexTest()
938 [operation, output, invalidOperand](Model* model, ExecutionPreference*) { in mutateOperationOutputOperandIndexTest()
947 static void mutateOperationRemoveWriteTest(const sp<IDevice>& device, const Model& model) { in mutateOperationRemoveWriteTest()
957 [operation, outputNum](Model* model, ExecutionPreference*) { in mutateOperationRemoveWriteTest()
990 static void removeOperand(Model* model, uint32_t index) { in removeOperand()
1000 static bool removeOperandSkip(size_t operand, const Model& model) { in removeOperandSkip()
1025 static void removeOperandTest(const sp<IDevice>& device, const Model& model) { in removeOperandTest()
1032 [operand](Model* model, ExecutionPreference*) { removeOperand(model, operand); }); in removeOperandTest()
1038 static void removeOperation(Model* model, uint32_t index) { in removeOperation()
1045 static void removeOperationTest(const sp<IDevice>& device, const Model& model) { in removeOperationTest()
1048 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in removeOperationTest()
1121 static void removeOperationInputTest(const sp<IDevice>& device, const Model& model) { in removeOperationInputTest()
1132 [operation, input](Model* model, ExecutionPreference*) { in removeOperationInputTest()
1143 static void removeOperationOutputTest(const sp<IDevice>& device, const Model& model) { in removeOperationOutputTest()
1150 [operation, output](Model* model, ExecutionPreference*) { in removeOperationOutputTest()
1177 static void addOperationInputTest(const sp<IDevice>& device, const Model& model) { in addOperationInputTest()
1183 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in addOperationInputTest()
1193 static void addOperationOutputTest(const sp<IDevice>& device, const Model& model) { in addOperationOutputTest()
1197 validate(device, message, model, [operation](Model* model, ExecutionPreference*) { in addOperationOutputTest()
1212 static void mutateExecutionPreferenceTest(const sp<IDevice>& device, const Model& model) { in mutateExecutionPreferenceTest()
1217 [invalidPreference](Model*, ExecutionPreference* preference) { in mutateExecutionPreferenceTest() argument
1225 void validateModel(const sp<IDevice>& device, const Model& model) { in validateModel()