tvm
|
Type-erased function used across TVM API. More...
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <tvm/runtime/c_runtime_api.h>
#include <tvm/runtime/crt/module.h>
#include <tvm/runtime/crt/platform.h>
#include "crt_config.h"
Go to the source code of this file.
Classes | |
struct | TVMArgs |
struct | TVMPackedFunc |
Typedefs | |
typedef struct TVMArgs | TVMArgs |
typedef struct TVMPackedFunc | TVMPackedFunc |
Functions | |
DLDataType | String2DLDataType (const char *s) |
TVMArgs | TVMArgs_Create (TVMValue *values, uint32_t *tcodes, uint32_t values_count) |
int | TVMPackedFunc_InitGlobalFunc (TVMPackedFunc *pf, const char *name, const TVMArgs *args) |
int | TVMPackedFunc_InitModuleFunc (TVMPackedFunc *pf, TVMModuleHandle module, const char *name, const TVMArgs *args) |
int | TVMPackedFunc_Call (TVMPackedFunc *pf) |
void | TVMPackedFunc_SetArgs (TVMPackedFunc *pf, const TVMArgs *args) |
TVMModuleHandle | TVMArgs_AsModuleHandle (const TVMArgs *args, size_t index) |
Variables | |
TVMPackedFunc * | g_fexecs |
uint32_t | g_fexecs_count |
Type-erased function used across TVM API.
typedef struct TVMPackedFunc TVMPackedFunc |
DLDataType String2DLDataType | ( | const char * | s | ) |
|
inline |
int TVMPackedFunc_Call | ( | TVMPackedFunc * | pf | ) |
int TVMPackedFunc_InitGlobalFunc | ( | TVMPackedFunc * | pf, |
const char * | name, | ||
const TVMArgs * | args | ||
) |
int TVMPackedFunc_InitModuleFunc | ( | TVMPackedFunc * | pf, |
TVMModuleHandle | module, | ||
const char * | name, | ||
const TVMArgs * | args | ||
) |
void TVMPackedFunc_SetArgs | ( | TVMPackedFunc * | pf, |
const TVMArgs * | args | ||
) |
TVMPackedFunc* g_fexecs |
uint32_t g_fexecs_count |