17 TEST_CASE(
"ClRegisterTensorHandleFactoriesMatchingImportFactoryId")
19 auto clBackend = std::make_unique<ClBackend>();
21 clBackend->RegisterTensorHandleFactories(registry);
25 CHECK((registry.GetMatchingImportFactoryId(ClTensorHandleFactory::GetIdStatic()) ==
26 ClImportTensorHandleFactory::GetIdStatic()));
29 TEST_CASE(
"ClRegisterTensorHandleFactoriesWithMemorySourceFlagsMatchingImportFactoryId")
31 auto clBackend = std::make_unique<ClBackend>();
33 clBackend->RegisterTensorHandleFactories(registry,
34 static_cast<MemorySourceFlags>(MemorySource::Malloc),
35 static_cast<MemorySourceFlags>(MemorySource::Malloc));
39 CHECK((registry.GetMatchingImportFactoryId(ClTensorHandleFactory::GetIdStatic()) ==
40 ClImportTensorHandleFactory::GetIdStatic()));
45 auto clBackend = std::make_unique<ClBackend>();
47 clBackend->CreateWorkloadFactory(registry);
51 CHECK((registry.GetMatchingImportFactoryId(ClTensorHandleFactory::GetIdStatic()) ==
52 ClImportTensorHandleFactory::GetIdStatic()));
57 auto clBackend = std::make_unique<ClBackend>();
60 clBackend->CreateWorkloadFactory(registry, modelOptions);
64 CHECK((registry.GetMatchingImportFactoryId(ClTensorHandleFactory::GetIdStatic()) ==
65 ClImportTensorHandleFactory::GetIdStatic()));
70 auto clBackend = std::make_unique<ClBackend>();
73 clBackend->CreateWorkloadFactory(registry, modelOptions,
74 static_cast<MemorySourceFlags>(MemorySource::Malloc),
75 static_cast<MemorySourceFlags>(MemorySource::Malloc));
80 CHECK((registry.GetMatchingImportFactoryId(ClTensorHandleFactory::GetIdStatic()) ==
81 ClImportTensorHandleFactory::GetIdStatic()));
std::vector< BackendOptions > ModelOptions
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")