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

Type trait to specify special value conversion rules from MXNetArgValue and MXNetRetValue. More...

#include <packed_func.h>

Collaboration diagram for mxnet::runtime::PackedFuncValueConverter< TObjectRef >:
Collaboration graph

Static Public Member Functions

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

Detailed Description

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

Type trait to specify special value conversion rules from MXNetArgValue and MXNetRetValue.

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 mxnet::runtime::PackedFuncValueConverter< TObjectRef >::From ( const MXNetArgValue 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 mxnet::runtime::PackedFuncValueConverter< TObjectRef >::From ( const MXNetRetValue 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: