tvm
Public Member Functions | Public Attributes | List of all members
tvm::runtime::TVMArgs Class Reference

Arguments into TVM functions. More...

#include <packed_func.h>

Collaboration diagram for tvm::runtime::TVMArgs:

Public Member Functions

 TVMArgs (const TVMValue *values, const int *type_codes, int num_args)
 constructor More...
 
int size () const
 
TVMArgValue operator[] (int i) const
 Get i-th argument. More...
 
template<typename T >
At (int i) const
 Get the i-th argument and do proper type checking with detailed error messages. More...
 

Public Attributes

const TVMValuevalues
 
const int * type_codes
 
int num_args
 

Detailed Description

Arguments into TVM functions.

Constructor & Destructor Documentation

◆ TVMArgs()

tvm::runtime::TVMArgs::TVMArgs ( const TVMValue values,
const int *  type_codes,
int  num_args 
)
inline

constructor

Parameters
valuesThe argument values
type_codesThe argument type codes
num_argsnumber of arguments.

Member Function Documentation

◆ At()

template<typename T >
T TVMArgs::At ( int  i) const
inline

Get the i-th argument and do proper type checking with detailed error messages.

Template Parameters
TThe expected type.
Parameters
iThe index
Returns
The corresponding argument value.

◆ operator[]()

TVMArgValue TVMArgs::operator[] ( int  i) const
inline

Get i-th argument.

Parameters
ithe index.
Returns
the ith argument.

◆ size()

int TVMArgs::size ( ) const
inline
Returns
size of the arguments

Member Data Documentation

◆ num_args

int tvm::runtime::TVMArgs::num_args

◆ type_codes

const int* tvm::runtime::TVMArgs::type_codes

◆ values

const TVMValue* tvm::runtime::TVMArgs::values

The documentation for this class was generated from the following file: