tvm
Static Public Member Functions | List of all members
tvm::runtime::PackedFuncValueConverter< TObjectRef > Struct Template Reference

Type trait to specify special value conversion rules from TVMArgValue and TVMRetValue. More...

#include <packed_func.h>

Collaboration diagram for tvm::runtime::PackedFuncValueConverter< TObjectRef >:

Static Public Member Functions

static TObjectRef From (const TVMArgValue &val)
 Convert a TObjectRef from an argument value. More...
 
static TObjectRef From (const TVMRetValue &val)
 Convert a TObjectRef from a return value. More...
 

Detailed Description

template<typename TObjectRef>
struct tvm::runtime::PackedFuncValueConverter< TObjectRef >

Type trait to specify special value conversion rules from TVMArgValue and TVMRetValue.

The trait can be specialized to add type specific conversion logic from the TVMArgvalue and TVMRetValue.

Template Parameters
TObjectRefthe specific ObjectRefType.

Member Function Documentation

◆ From() [1/2]

template<typename TObjectRef >
static TObjectRef tvm::runtime::PackedFuncValueConverter< TObjectRef >::From ( const TVMArgValue val)
inlinestatic

Convert a TObjectRef from an argument value.

Parameters
valThe argument value.
Returns
the converted result.

◆ From() [2/2]

template<typename TObjectRef >
static TObjectRef tvm::runtime::PackedFuncValueConverter< TObjectRef >::From ( const TVMRetValue val)
inlinestatic

Convert a TObjectRef from a return value.

Parameters
valThe argument value.
Returns
the converted result.

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