21.02
|
#include <armnn/BackendRegistry.hpp>
#include <armnn/backends/DynamicBackend.hpp>
#include <armnn/ILayerSupport.hpp>
#include <armnn/utility/PolymorphicDowncast.hpp>
#include <backendsCommon/CpuTensorHandle.hpp>
#include <backendsCommon/DynamicBackendUtils.hpp>
#include <Filesystem.hpp>
#include <reference/workloads/RefConvolution2dWorkload.hpp>
#include <Runtime.hpp>
#include <string>
#include <memory>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
Classes | |
class | TestDynamicBackendUtils |
class | TestBackendRegistry |
Macros | |
#define | DYNAMIC_BACKEND_BUILD_DIR fs::path("./") |
#define DYNAMIC_BACKEND_BUILD_DIR fs::path("./") |
Definition at line 24 of file DynamicBackendTests.hpp.
Referenced by GetBasePath().
void BackendVersioningTestImpl | ( | ) |
Definition at line 336 of file DynamicBackendTests.hpp.
References GetTestSubDirectory(), and TestDynamicBackendUtils::IsBackendCompatibleTest().
void CloseInvalidHandleTestImpl | ( | ) |
Definition at line 214 of file DynamicBackendTests.hpp.
void CreateDynamicBackendObjectInvalidHandleTestImpl | ( | ) |
Definition at line 428 of file DynamicBackendTests.hpp.
void CreateDynamicBackendObjectInvalidInterface1TestImpl | ( | ) |
Definition at line 440 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendObjectInvalidInterface2TestImpl | ( | ) |
Definition at line 459 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendObjectInvalidInterface3TestImpl | ( | ) |
Definition at line 479 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendObjectInvalidInterface4TestImpl | ( | ) |
Definition at line 499 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendObjectInvalidInterface5TestImpl | ( | ) |
Definition at line 519 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendObjectInvalidInterface6TestImpl | ( | ) |
Definition at line 540 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendObjectInvalidInterface7TestImpl | ( | ) |
Definition at line 581 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendsAllInvalidTestImpl | ( | ) |
Definition at line 866 of file DynamicBackendTests.hpp.
void CreateDynamicBackendsMixedTypesTestImpl | ( | ) |
Definition at line 881 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void CreateDynamicBackendsNoPathsTestImpl | ( | ) |
Definition at line 857 of file DynamicBackendTests.hpp.
void CreateDynamicBackendsTestImpl | ( | ) |
Definition at line 794 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void GetBackendPathsOverrideTestImpl | ( | ) |
Definition at line 682 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void GetBackendPathsTestImpl | ( | ) |
Definition at line 602 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
std::string GetBasePath | ( | const std::string & | basePath | ) |
Definition at line 109 of file DynamicBackendTests.hpp.
References DYNAMIC_BACKEND_BUILD_DIR.
Referenced by GetDynamicBackendsBasePath(), and GetTestDirectoryBasePath().
std::string GetDynamicBackendsBasePath | ( | ) |
Definition at line 161 of file DynamicBackendTests.hpp.
References GetBasePath().
Referenced by RuntimeInvalidOverridePathTestImpl().
void GetNameMangledEntryPointTestImpl | ( | ) |
Definition at line 273 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void GetNoExternEntryPointTestImpl | ( | ) |
Definition at line 294 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void GetNotExistingEntryPointTestImpl | ( | ) |
Definition at line 315 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void GetSharedObjectsTestImpl | ( | ) |
Definition at line 703 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
std::string GetTestDirectoryBasePath | ( | ) |
Definition at line 156 of file DynamicBackendTests.hpp.
References GetBasePath().
Referenced by GetTestSubDirectory().
std::string GetTestFilePath | ( | const std::string & | directory, |
const std::string & | fileName | ||
) |
Definition at line 189 of file DynamicBackendTests.hpp.
std::string GetTestSubDirectory | ( | const std::string & | subdir | ) |
Definition at line 166 of file DynamicBackendTests.hpp.
References GetTestDirectoryBasePath().
Referenced by BackendVersioningTestImpl(), CreateDynamicBackendObjectInvalidInterface1TestImpl(), CreateDynamicBackendObjectInvalidInterface2TestImpl(), CreateDynamicBackendObjectInvalidInterface3TestImpl(), CreateDynamicBackendObjectInvalidInterface4TestImpl(), CreateDynamicBackendObjectInvalidInterface5TestImpl(), CreateDynamicBackendObjectInvalidInterface6TestImpl(), CreateDynamicBackendObjectInvalidInterface7TestImpl(), CreateDynamicBackendsMixedTypesTestImpl(), CreateDynamicBackendsTestImpl(), GetBackendPathsOverrideTestImpl(), GetBackendPathsTestImpl(), GetNameMangledEntryPointTestImpl(), GetNoExternEntryPointTestImpl(), GetNotExistingEntryPointTestImpl(), GetSharedObjectsTestImpl(), GetValidEntryPointTestImpl(), OpenCloseHandleTestImpl(), OpenNotSharedObjectTestImpl(), RegisterMultipleInvalidDynamicBackendsTestImpl(), RuntimeDuplicateDynamicBackendsTestImpl(), RuntimeDynamicBackendsTestImpl(), RuntimeInvalidDynamicBackendsTestImpl(), and RuntimeInvalidOverridePathTestImpl().
std::string GetTestSubDirectory | ( | const std::string & | basePath, |
const std::string & | subdir | ||
) |
Definition at line 178 of file DynamicBackendTests.hpp.
void GetValidEntryPointTestImpl | ( | ) |
Definition at line 252 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void OpenCloseHandleTestImpl | ( | ) |
Definition at line 200 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void OpenEmptyFileNameTestImpl | ( | ) |
Definition at line 222 of file DynamicBackendTests.hpp.
void OpenNotExistingFileTestImpl | ( | ) |
Definition at line 231 of file DynamicBackendTests.hpp.
void OpenNotSharedObjectTestImpl | ( | ) |
Definition at line 240 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void RegisterMultipleInvalidDynamicBackendsTestImpl | ( | ) |
Definition at line 1186 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void RuntimeDuplicateDynamicBackendsTestImpl | ( | ) |
Definition at line 1311 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void RuntimeDynamicBackendsTestImpl | ( | ) |
Definition at line 1270 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void RuntimeEmptyTestImpl | ( | ) |
Definition at line 1248 of file DynamicBackendTests.hpp.
References armnn::BackendRegistryInstance(), DeviceSpec::GetSupportedBackends(), and BackendRegistry::Size().
void RuntimeInvalidDynamicBackendsTestImpl | ( | ) |
Definition at line 1352 of file DynamicBackendTests.hpp.
References GetTestSubDirectory().
void RuntimeInvalidOverridePathTestImpl | ( | ) |
Definition at line 1377 of file DynamicBackendTests.hpp.
References armnn::BackendRegistryInstance(), GetDynamicBackendsBasePath(), DeviceSpec::GetSupportedBackends(), GetTestSubDirectory(), IRuntime::CreationOptions::m_DynamicBackendsPath, and BackendRegistry::Size().