Searched refs:operandCount (Results 1 - 6 of 6) sorted by relevance

/frameworks/ml/nn/common/
H A DUtils.cpp287 int validateOperandList(uint32_t count, const uint32_t* list, uint32_t operandCount, argument
290 if (list[i] >= operandCount) {
292 << ", operandCount " << operandCount; local
299 static bool validOperandIndexes(const hidl_vec<uint32_t> indexes, size_t operandCount) { argument
301 if (i >= operandCount) {
302 LOG(ERROR) << "Index out of range " << i << "/" << operandCount; local
357 static bool validOperations(const hidl_vec<Operation>& operations, size_t operandCount) { argument
364 if (!validOperandIndexes(op.inputs, operandCount) ||
365 !validOperandIndexes(op.outputs, operandCount)) {
374 const size_t operandCount = model.operands.size(); local
[all...]
/frameworks/ml/nn/runtime/
H A DModelBuilder.cpp62 if (index >= operandCount()) {
64 << operandCount();
155 if (index >= operandCount()) {
157 << " of " << operandCount();
185 int n = validateOperandList(inputCount, inputs, operandCount(),
190 n = validateOperandList(outputCount, outputs, operandCount(),
220 int n = validateOperandList(inputCount, inputs, operandCount(),
225 n = validateOperandList(outputCount, outputs, operandCount(),
H A DModelBuilder.h58 uint32_t operandCount() const { function in class:android::nn::ModelBuilder
H A DExecutionPlan.cpp151 *toOperandIndex = mSubModel->operandCount();
241 const uint32_t operandCount = static_cast<uint32_t>(globalOperands.size());
242 for (uint32_t i = 0; i < operandCount; i++) {
/frameworks/ml/nn/common/include/
H A DUtils.h144 int validateOperandList(uint32_t count, const uint32_t* list, uint32_t operandCount,
/frameworks/ml/nn/runtime/test/
H A DTestPartitioning.cpp405 for (uint32_t i = 0, e = model->operandCount(); i < e; i++) {
430 ASSERT_EQ(model->operandCount(), defMap->size());
506 if (modelA->operandCount() != modelB->operandCount() ||
619 if (modelA->operandCount() != defsA.size() ||
620 modelA->operandCount() != defsB.size() ||
621 modelA->operandCount() != equivalentOperandsAToB.size() ||

Completed in 87 milliseconds