Home
last modified time | relevance | path

Searched refs:sortedIndexes (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NeuralNetworks/common/
DValidateHal.cpp573 std::vector<uint32_t> sortedIndexes = indexes; in validateModelInputOutputs() local
574 std::sort(sortedIndexes.begin(), sortedIndexes.end()); in validateModelInputOutputs()
575 auto adjacentI = std::adjacent_find(sortedIndexes.begin(), sortedIndexes.end()); in validateModelInputOutputs()
576 if (adjacentI != sortedIndexes.end()) { in validateModelInputOutputs()
583 !binary_search(sortedIndexes.begin(), sortedIndexes.end(), i)) { in validateModelInputOutputs()
DValidation.cpp789 std::vector<uint32_t> sortedIndexes = indexes; in validateModelSubgraphInputOutputs() local
790 std::sort(sortedIndexes.begin(), sortedIndexes.end()); in validateModelSubgraphInputOutputs()
791 const auto iter = std::adjacent_find(sortedIndexes.begin(), sortedIndexes.end()); in validateModelSubgraphInputOutputs()
792 NN_VALIDATE(iter == sortedIndexes.end()) in validateModelSubgraphInputOutputs()
797 const auto containsIndex = [&sortedIndexes](size_t index) { in validateModelSubgraphInputOutputs()
798 return binary_search(sortedIndexes.begin(), sortedIndexes.end(), index); in validateModelSubgraphInputOutputs()