#include <neon/NeonBackend.hpp>
#include <neon/NeonTensorHandleFactory.hpp>
#include <doctest/doctest.h>
Go to the source code of this file.
◆ TEST_SUITE()
TEST_SUITE |
( |
"NeonBackendTests" |
| ) |
|
Definition at line 13 of file NeonBackendTests.cpp.
References NeonTensorHandleFactory::GetIdStatic().
15 TEST_CASE(
"NeonRegisterTensorHandleFactoriesMatchingImportFactoryId")
17 auto neonBackend = std::make_unique<NeonBackend>();
19 neonBackend->RegisterTensorHandleFactories(registry);
23 CHECK((registry.GetMatchingImportFactoryId(NeonTensorHandleFactory::GetIdStatic()) ==
24 NeonTensorHandleFactory::GetIdStatic()));
27 TEST_CASE(
"NeonCreateWorkloadFactoryMatchingImportFactoryId")
29 auto neonBackend = std::make_unique<NeonBackend>();
31 neonBackend->CreateWorkloadFactory(registry);
35 CHECK((registry.GetMatchingImportFactoryId(NeonTensorHandleFactory::GetIdStatic()) ==
36 NeonTensorHandleFactory::GetIdStatic()));
39 TEST_CASE(
"NeonCreateWorkloadFactoryWithOptionsMatchingImportFactoryId")
41 auto neonBackend = std::make_unique<NeonBackend>();
44 neonBackend->CreateWorkloadFactory(registry, modelOptions);
48 CHECK((registry.GetMatchingImportFactoryId(NeonTensorHandleFactory::GetIdStatic()) ==
49 NeonTensorHandleFactory::GetIdStatic()));
std::vector< BackendOptions > ModelOptions