tvm
|
Internal base class to handle conversion to POD values. More...
#include <packed_func.h>
Public Member Functions | |
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 |
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 |
return handle as specific pointer type.
T | the data type. |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
protected |
the type code
|
protected |
The value.