• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include <backendsCommon/memoryOptimizerStrategyLibrary/MemoryOptimizerStrategyLibrary.hpp>
7 
8 #include <doctest/doctest.h>
9 
10 using namespace armnn;
11 
12 TEST_SUITE("StrategyLibraryTestSuite")
13 {
14 
15 TEST_CASE("StrategyLibraryTest")
16 {
17     std::vector<std::string> strategyNames = GetMemoryOptimizerStrategyNames();
18     CHECK(strategyNames.size() != 0);
19     for (const auto& strategyName: strategyNames)
20     {
21         auto strategy = GetMemoryOptimizerStrategy(strategyName);
22         CHECK(strategy);
23         CHECK(strategy->GetName() == strategyName);
24     }
25 }
26 
27 }
28 
29