forked from projectceladon/nn_gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecutor_manager.cpp
executable file
·49 lines (38 loc) · 1 KB
/
executor_manager.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "executor_manager.h"
#include "gles/gles_cs_executor.h"
namespace android {
namespace hardware {
namespace neuralnetworks {
namespace V1_0 {
namespace implementation {
ExecutorManager::ExecutorType ExecutorManager::type = ExecutorManager::ET_GLES_CS;
bool ExecutorManager::initPerProcess()
{
//might check setting to change type
if (type == ET_GLES_CS)
{
return GlesCsExecutor::initPerProcess();
}
return false;
}
void ExecutorManager::deinitPerProcess()
{
GlesCsExecutor::deinitPerProcess();
}
void ExecutorManager::getCapabilities(Capabilities &cap)
{
GlesCsExecutor::getCapabilities(cap);
}
std::vector<bool> ExecutorManager::getSupportedOperations(const Model& model)
{
return GlesCsExecutor::getSupportedOperations(model);
}
BaseExecutor* ExecutorManager::createExecutor(const Model& model)
{
return new GlesCsExecutor(model);
}
} // namespace implementation
} // namespace V1_0
} // namespace neuralnetworks
} // namespace hardware
} // namespace android