tvm
Classes | Typedefs | Functions | Variables
packed_func.h File Reference

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"
Include dependency graph for packed_func.h:
This graph shows which files directly or indirectly include this file:

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

TVMPackedFuncg_fexecs
 
uint32_t g_fexecs_count
 

Detailed Description

Type-erased function used across TVM API.

Typedef Documentation

◆ TVMArgs

typedef struct TVMArgs TVMArgs

◆ TVMPackedFunc

typedef struct TVMPackedFunc TVMPackedFunc

Function Documentation

◆ String2DLDataType()

DLDataType String2DLDataType ( const char *  s)

◆ TVMArgs_AsModuleHandle()

TVMModuleHandle TVMArgs_AsModuleHandle ( const TVMArgs args,
size_t  index 
)
inline

◆ TVMArgs_Create()

TVMArgs TVMArgs_Create ( TVMValue values,
uint32_t *  tcodes,
uint32_t  values_count 
)

◆ TVMPackedFunc_Call()

int TVMPackedFunc_Call ( TVMPackedFunc pf)

◆ TVMPackedFunc_InitGlobalFunc()

int TVMPackedFunc_InitGlobalFunc ( TVMPackedFunc pf,
const char *  name,
const TVMArgs args 
)

◆ TVMPackedFunc_InitModuleFunc()

int TVMPackedFunc_InitModuleFunc ( TVMPackedFunc pf,
TVMModuleHandle  module,
const char *  name,
const TVMArgs args 
)

◆ TVMPackedFunc_SetArgs()

void TVMPackedFunc_SetArgs ( TVMPackedFunc pf,
const TVMArgs args 
)

Variable Documentation

◆ g_fexecs

TVMPackedFunc* g_fexecs
extern

◆ g_fexecs_count

uint32_t g_fexecs_count
extern