|
tvm
|
Internal base class to handle conversion to POD values. More...
#include <packed_func.h>
Public Member Functions | |
| operator double () const | |
| operator int64_t () const | |
| operator uint64_t () const | |
| operator int () const | |
| operator bool () const | |
| 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... | |
| template<typename TObjectRef , typename = typename std::enable_if<std::is_base_of<ObjectRef, TObjectRef>::value>::type> | |
| bool | IsObjectRef () const |
| template<typename TObjectRef > | |
| TObjectRef | AsObjectRef () const |
Protected Member Functions | |
| TVMPODValue_ () | |
| TVMPODValue_ (TVMValue value, int type_code) | |
Protected Attributes | |
| TVMValue | value_ |
| The value. More... | |
| int | type_code_ |
| the type code More... | |
Friends | |
| class | TVMArgsSetter |
| class | TVMRetValue |
| class | TVMMovableArgValue_ |
Internal base class to handle conversion to POD values.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return handle as specific pointer type.
| T | the data type. |
|
inline |
|
friend |
|
friend |
|
friend |
|
protected |
the type code
|
protected |
The value.
1.8.13