tvm
|
Type trait to specify special value conversion rules from TVMArgValue and TVMRetValue. More...
#include <packed_func.h>
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... | |
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.
TObjectRef | the specific ObjectRefType. |
|
inlinestatic |
Convert a TObjectRef from an argument value.
val | The argument value. |
|
inlinestatic |
Convert a TObjectRef from a return value.
val | The argument value. |