Lines Matching refs:model
99 GeneralResult<Model> unvalidatedConvert(const hal::V1_1::Model& model) { in unvalidatedConvert() argument
100 auto operations = NN_TRY(unvalidatedConvert(model.operations)); in unvalidatedConvert()
104 NN_TRY(countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert()
105 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert()
106 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert()
107 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert()
110 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert()
114 auto operands = NN_TRY(unvalidatedConvert(model.operands)); in unvalidatedConvert()
118 .inputIndexes = model.inputIndexes, in unvalidatedConvert()
119 .outputIndexes = model.outputIndexes, in unvalidatedConvert()
122 auto operandValues = NN_TRY(unvalidatedConvert(model.operandValues)); in unvalidatedConvert()
123 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert()
128 .relaxComputationFloat32toFloat16 = model.relaxComputationFloat32toFloat16, in unvalidatedConvert()
141 GeneralResult<Model> convert(const hal::V1_1::Model& model) { in convert() argument
142 return validatedConvert(model); in convert()
224 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model) { in unvalidatedConvert() argument
225 if (!hal::utils::hasNoPointerData(model)) { in unvalidatedConvert()
230 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert()
234 NN_TRY(countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert()
240 auto operations = NN_TRY(unvalidatedConvert(model.main.operations)); in unvalidatedConvert()
241 auto operandValues = NN_TRY(unvalidatedConvert(model.operandValues)); in unvalidatedConvert()
242 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert()
246 .inputIndexes = model.main.inputIndexes, in unvalidatedConvert()
247 .outputIndexes = model.main.outputIndexes, in unvalidatedConvert()
250 .relaxComputationFloat32toFloat16 = model.relaxComputationFloat32toFloat16, in unvalidatedConvert()
263 nn::GeneralResult<Model> convert(const nn::Model& model) { in convert() argument
264 return validatedConvert(model); in convert()