A single argument value to PackedFunc. Containing both type_code and TVMValue.
More...
#include <packed_func.h>
A single argument value to PackedFunc. Containing both type_code and TVMValue.
Provides utilities to do type cast into other types.
◆ TVMArgValue() [1/2]
tvm::runtime::TVMArgValue::TVMArgValue |
( |
| ) |
|
|
inline |
◆ TVMArgValue() [2/2]
tvm::runtime::TVMArgValue::TVMArgValue |
( |
TVMValue |
value, |
|
|
int |
type_code |
|
) |
| |
|
inline |
constructor
- Parameters
-
value | of the function |
type_code | The type code. |
◆ AsObjectRef()
template<typename TObjectRef >
TObjectRef tvm::runtime::TVMPODValue_::AsObjectRef |
( |
typename TObjectRef |
| ) |
|
|
inline |
◆ IsObjectRef()
template<typename TObjectRef , typename = typename std::enable_if<std::is_base_of<ObjectRef, TObjectRef>::value>::type>
bool tvm::runtime::TVMPODValue_::IsObjectRef |
( |
typename TObjectRef |
, |
|
|
typename |
= typename std::enable_if<std::is_base_of<ObjectRef, TObjectRef>::value>::type |
|
) |
| |
|
inline |
◆ operator DataType()
tvm::runtime::TVMArgValue::operator DataType |
( |
| ) |
const |
|
inline |
◆ operator DLDataType()
tvm::runtime::TVMArgValue::operator DLDataType |
( |
| ) |
const |
|
inline |
◆ operator T()
template<typename T , typename >
tvm::runtime::TVMArgValue::operator T |
|
inline |
◆ operator TypedPackedFunc< FType >()
template<typename FType >
◆ value()
const TVMValue& tvm::runtime::TVMArgValue::value |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: