Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/
DValidateHal.cpp574 std::vector<uint32_t> sortedIndexes = indexes; in validateModelInputOutputs() local
575 std::sort(sortedIndexes.begin(), sortedIndexes.end()); in validateModelInputOutputs()
576 auto adjacentI = std::adjacent_find(sortedIndexes.begin(), sortedIndexes.end()); in validateModelInputOutputs()
577 if (adjacentI != sortedIndexes.end()) { in validateModelInputOutputs()
584 !binary_search(sortedIndexes.begin(), sortedIndexes.end(), i)) { in validateModelInputOutputs()
/packages/modules/NeuralNetworks/common/types/src/
DValidation.cpp762 std::vector<uint32_t> sortedIndexes = indexes; in validateModelSubgraphInputOutputs() local
763 std::sort(sortedIndexes.begin(), sortedIndexes.end()); in validateModelSubgraphInputOutputs()
764 const auto iter = std::adjacent_find(sortedIndexes.begin(), sortedIndexes.end()); in validateModelSubgraphInputOutputs()
765 NN_RET_CHECK(iter == sortedIndexes.end()) in validateModelSubgraphInputOutputs()
770 const auto containsIndex = [&sortedIndexes](size_t index) { in validateModelSubgraphInputOutputs()
771 return binary_search(sortedIndexes.begin(), sortedIndexes.end(), index); in validateModelSubgraphInputOutputs()