tvm
|
A single argument value to PackedFunc. Containing both type_code and TVMValue. More...
#include <packed_func.h>
Public Member Functions | |
TVMArgValue () | |
default constructor More... | |
TVMArgValue (TVMValue value, int type_code) | |
constructor More... | |
template<typename FType > | |
operator TypedPackedFunc< FType > () const | |
const TVMValue & | value () const |
template<typename T , typename = typename std::enable_if<std::is_class<T>::value>::type> | |
operator T () const | |
operator DLDataType () const | |
operator DataType () const | |
template<typename TObjectRef > | |
TObjectRef | AsObjectRef () const |
template<typename TObjectRef , typename = typename std::enable_if<std::is_base_of<ObjectRef, TObjectRef>::value>::type> | |
bool | IsObjectRef () const |
Public Member Functions inherited from tvm::runtime::TVMPODValue_CRTP_< TVMArgValue > | |
bool | IsObjectRef () const |
TObjectRef | AsObjectRef () const |
operator double () const | |
operator int64_t () const | |
operator uint64_t () const | |
operator int () const | |
operator bool () const | |
TVMPODValue_ () | |
TVMPODValue_ (TVMValue value, int type_code) | |
Public Member Functions inherited from tvm::runtime::TVMPODValue_ | |
operator void * () const | |
operator DLTensor * () const | |
operator NDArray () const | |
operator Module () const | |
operator PackedFunc () const | |
operator Device () const | |
int | type_code () const |
template<typename T > | |
T * | ptr () const |
return handle as specific pointer type. More... | |
std::optional< bool > | TryAsBool () const |
std::optional< int64_t > | TryAsInt () const |
std::optional< double > | TryAsFloat () const |
Additional Inherited Members | |
Protected Member Functions inherited from tvm::runtime::TVMPODValue_ | |
TVMPODValue_ () | |
TVMPODValue_ (TVMValue value, int type_code) | |
Protected Attributes inherited from tvm::runtime::TVMPODValue_ | |
TVMValue | value_ |
The value. More... | |
int | type_code_ |
the type code More... | |
A single argument value to PackedFunc. Containing both type_code and TVMValue.
Provides utilities to do type cast into other types.
|
inline |
default constructor
|
inline |
constructor
value | of the function |
type_code | The type code. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |