Lines Matching refs:inputCount
349 int ModelBuilder::addOperation(ANeuralNetworksOperationType type, uint32_t inputCount, in addOperation() argument
380 return getReferencedModel(modelOperand)->inputCount(); in addOperation()
392 type, inputCount, inputs, outputCount, outputs, mOperands, HalVersion::LATEST, in addOperation()
408 .inputs = hidl_vec<uint32_t>(inputs, inputs + inputCount), in addOperation()
420 int ModelBuilder::identifyInputsAndOutputs(uint32_t inputCount, const uint32_t* inputs, in identifyInputsAndOutputs() argument
426 int n = validateOperandList(inputCount, inputs, operandCount(), in identifyInputsAndOutputs()
466 if (!setArguments(&mInputIndexes, inputCount, inputs, OperandLifeTime::SUBGRAPH_INPUT) || in identifyInputsAndOutputs()
566 const uint32_t inputCount = operation.inputs.size(); in removeTrailingArgumentsWithDefaultValues() local
567 CHECK_LT(count, inputCount); in removeTrailingArgumentsWithDefaultValues()
568 const uint32_t newInputCount = inputCount - count; in removeTrailingArgumentsWithDefaultValues()
569 for (uint32_t i = newInputCount; i < inputCount; ++i) { in removeTrailingArgumentsWithDefaultValues()
618 const uint32_t inputCount = operation.inputs.size(); in countMatchingTrailingArguments() local
620 for (uint32_t i = inputCount - 1; i >= tailStartIndex; --i) { in countMatchingTrailingArguments()
631 const uint32_t inputCount = operation.inputs.size(); in getNumTrailingArgumentsToRemove() local
641 if (inputCount == 11 && mOperands[operation.inputs[7]].type == OperandType::INT32) { in getNumTrailingArgumentsToRemove()
646 } else if (inputCount == 8 && in getNumTrailingArgumentsToRemove()
655 if (10 < inputCount && inputCount <= 13 && in getNumTrailingArgumentsToRemove()
662 return inputCount - count == 12 ? 0 : count; in getNumTrailingArgumentsToRemove()
663 } else if (7 < inputCount && inputCount <= 10 && in getNumTrailingArgumentsToRemove()
670 return inputCount - count == 9 ? 0 : count; in getNumTrailingArgumentsToRemove()
674 if (11 < inputCount && inputCount <= 14 && in getNumTrailingArgumentsToRemove()
681 return inputCount - count == 13 ? 0 : count; in getNumTrailingArgumentsToRemove()
682 } else if (8 < inputCount && inputCount <= 11 && in getNumTrailingArgumentsToRemove()
689 return inputCount - count == 10 ? 0 : count; in getNumTrailingArgumentsToRemove()
693 if (inputCount == 3) { in getNumTrailingArgumentsToRemove()
700 if (inputCount == 2) { in getNumTrailingArgumentsToRemove()
707 if (inputCount == 11 && mOperands[operation.inputs[7]].type == OperandType::INT32) { in getNumTrailingArgumentsToRemove()
712 } else if (inputCount == 8 && in getNumTrailingArgumentsToRemove()
721 if (inputCount == 6) { in getNumTrailingArgumentsToRemove()
728 if (inputCount == 11 && mOperands[operation.inputs[7]].type == OperandType::INT32) { in getNumTrailingArgumentsToRemove()
733 } else if (inputCount == 8 && in getNumTrailingArgumentsToRemove()
742 if (3 < inputCount && inputCount <= 6) { in getNumTrailingArgumentsToRemove()
754 if (inputCount == 3) { in getNumTrailingArgumentsToRemove()
761 if (inputCount == 3) { in getNumTrailingArgumentsToRemove()
768 if (inputCount == 3) { in getNumTrailingArgumentsToRemove()
775 if (inputCount == 4) { in getNumTrailingArgumentsToRemove()
782 if (4 < inputCount && inputCount <= 6) { in getNumTrailingArgumentsToRemove()