24 #ifndef TVM_RUNTIME_CRT_AOT_EXECUTOR_H_
25 #define TVM_RUNTIME_CRT_AOT_EXECUTOR_H_
31 #include <dlpack/dlpack.h>
32 #include <tvm/runtime/crt/internal/common/ndarray.h>
int TVMAotExecutor_Release(TVMAotExecutor *executor, const DLDevice device)
Release the AoT executor created by TVMAotExecutor_Create().
struct TVMAotExecutor TVMAotExecutor
int TVMAotExecutor_GetNumOutputs(TVMAotExecutor *executor)
Return the number of outputs.
int TVMAotExecutor_GetNumInputs(TVMAotExecutor *executor)
Return the number of inputs.
int TVMAotExecutor_GetInputName(TVMAotExecutor *executor, int index, const char **name)
Return a pointer to name of input with the specified input index.
int TVMAotExecutor_Run(TVMAotExecutor *executor)
Run the generated program.
int TVMAotExecutor_Create(TVMModuleHandle module_handle, const DLDevice device, TVMAotExecutor **executor, const char *module_name)
Allocate a new AotExecutor with TVMPlatformMemoryAllocate and initialize it.
int TVMAotExecutor_GetInputIndex(TVMAotExecutor *executor, const char *name)
Return the input index of the specified input name.
void * TVMModuleHandle
Handle to TVM runtime modules.
Definition: c_runtime_api.h:227
Definition: aot_executor.h:37
TVMModuleHandle module_handle
The code module that contains the compiled model.
Definition: aot_executor.h:41
const TVMMetadata * metadata
The top-level metadata structure supplied by the generated code.
Definition: aot_executor.h:39
DLDevice device
The device type.
Definition: aot_executor.h:43
int64_t num_args
Definition: aot_executor.h:46
TVMNDArray * args
List of allocated arguments, input(s), output(s), and pool(s)
Definition: aot_executor.h:45