Searched refs:valueModel (Results 1 – 2 of 2) sorted by relevance
/frameworks/ml/nn/runtime/test/ |
D | TestValidation.cpp | 731 ANeuralNetworksModel* valueModel = nullptr; in TEST_F() local 732 ASSERT_EQ(ANeuralNetworksModel_create(&valueModel), ANEURALNETWORKS_NO_ERROR); in TEST_F() 733 ASSERT_EQ(ANeuralNetworksModel_addOperand(valueModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in TEST_F() 734 ASSERT_EQ(ANeuralNetworksModel_addOperand(valueModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in TEST_F() 735 ASSERT_EQ(ANeuralNetworksModel_addOperand(valueModel, &scalarType), ANEURALNETWORKS_NO_ERROR); in TEST_F() 736 ASSERT_EQ(ANeuralNetworksModel_addOperand(valueModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in TEST_F() 739 ASSERT_EQ(ANeuralNetworksModel_addOperation(valueModel, ANEURALNETWORKS_ADD, 3, inList, 1, in TEST_F() 742 ASSERT_EQ(ANeuralNetworksModel_identifyInputsAndOutputs(valueModel, 3, inList, 1, outList), in TEST_F() 748 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromModel(mModel, 0, valueModel), in TEST_F() 750 ANeuralNetworksModel_finish(valueModel); in TEST_F() [all …]
|
D | TestValidateOperations.cpp | 75 : operandType(operandType), channelQuant(std::nullopt), valueModel(std::nullopt) {} in OperandTypeWithExtraParams() 79 std::optional<const ANeuralNetworksModel*> valueModel; member 96 if (valueModel != that.valueModel) { in operator ==() 355 void setInputOperandValueFromModel(int32_t index, const ANeuralNetworksModel* valueModel) { in setInputOperandValueFromModel() argument 356 mValidInputs[index].valueModel = valueModel; in setInputOperandValueFromModel() 375 if (inputs[i].valueModel) { in addOperation() 377 inputs[i].valueModel.value()); in addOperation() 681 if (operand.valueModel.has_value()) { in operator <<() 682 os << ", valueModel: " << operand.valueModel.value(); in operator <<()
|