-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExecution.cpp
41 lines (38 loc) · 1.33 KB
/
Execution.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
#include "Execution.h"
Execution::Execution(const Compilation compilation) :
mModel(compilation->mModel),
nInputs(mModel->inputcount()),
mOutputs(mModel->outputCount()){}
int Execution::create(Compilation* compilation, Execution** execution){
//TODO
return ANEURALNETWORKS_NO_ERROR;
}
void Execution::free(Execution* execution){
free(execution);
}
int Execution::setInput(Execution* execution, int32_t index,
const OperandType* type, const void* buffer,
size_t length){
//TODO
return ANEURALNETWORKS_NO_ERROR;
}
int Execution::setInputFromMemory(Execution* execution, int32_t index,
const OperandType* type, const Memory* memory,
size_t offset, size_t length){
//TODO
return ANEURALNETWORKS_NO_ERROR;
}
int Execution::setOutput(Execution* execution, int32_t index,
const OperandType, void* buffer, size_t length){
//TODO
return ANEURALNETWORKS_NO_ERROR;
}
int Execution::setOutputFromMemory(Execution* execution, int32_t index, const OperandType* type,
const Memory* memory, size_t offset, size_t length){
//TODO
return ANEURALNETWORKS_NO_ERROR;
}
int Execution::startCompute(Execution* execution, Event** event){
//TODO
return ANEURALNETWORKS_NO_ERROR;
}