TI Deep Learning Product User Guide
itvm_rt.h File Reference

Introduction

This file defines the public interface for TVM Runtime API This same API supports a client on a different CPU, out-of-process on the same CPU, or in-process.

Version
0.1 June 2021 : Initial Code

Go to the source code of this file.

#define TVMRT_MAX_INPUT_TENSORS   (16U)
 
#define TVMRT_MAX_TOTAL_INPUT_TENSOR_NAMES_SIZE   (512U)
 
#define TVMRT_MAX_TOTAL_TENSORS   (32U)
 
#define TVMRT_MAX_TENSOR_DIM   (8)
 
int32_t TVMRT_create (sTVMRT_Params_t *prms, void **handle)
 
int32_t TVMRT_invoke (void *handle, sTVMRT_Tensor_t *in[], sTVMRT_Tensor_t *out[])
 
int32_t TVMRT_deactivate (void *handle)
 
int32_t TVMRT_delete (void *handle)
 
int32_t TVMRT_setParamsDefault (sTVMRT_Params_t *prms)
 

Data Structures

struct  sTVMRT_TensorParams_t
 Parameters describing a TVMRT Tensor. More...
 
struct  sTVMRT_Tensor_t
 TVMRT Tensor for TVMRT_invoke. More...
 
struct  sTVMRT_Params_t
 TVMRT configuration parameters. More...
 

Macro Definition Documentation

◆ TVMRT_MAX_INPUT_TENSORS

#define TVMRT_MAX_INPUT_TENSORS   (16U)

◆ TVMRT_MAX_TOTAL_INPUT_TENSOR_NAMES_SIZE

#define TVMRT_MAX_TOTAL_INPUT_TENSOR_NAMES_SIZE   (512U)

◆ TVMRT_MAX_TOTAL_TENSORS

#define TVMRT_MAX_TOTAL_TENSORS   (32U)

◆ TVMRT_MAX_TENSOR_DIM

#define TVMRT_MAX_TENSOR_DIM   (8)

Function Documentation

◆ TVMRT_create()

int32_t TVMRT_create ( sTVMRT_Params_t prms,
void **  handle 
)

◆ TVMRT_invoke()

int32_t TVMRT_invoke ( void *  handle,
sTVMRT_Tensor_t in[],
sTVMRT_Tensor_t out[] 
)

◆ TVMRT_deactivate()

int32_t TVMRT_deactivate ( void *  handle)

◆ TVMRT_delete()

int32_t TVMRT_delete ( void *  handle)

◆ TVMRT_setParamsDefault()

int32_t TVMRT_setParamsDefault ( sTVMRT_Params_t prms)