mxnet
|
Return Value container, Unlike MXNetArgValue, which only holds reference and do not delete the underlying container during destruction. More...
#include <packed_func.h>
Public Member Functions | |
MXNetRetValue () | |
default constructor More... | |
MXNetRetValue (MXNetRetValue &&other) | |
move constructor from anoter return value. More... | |
~MXNetRetValue () | |
destructor More... | |
MXNetRetValue (const MXNetRetValue &other) | |
operator std::string () const | |
operator DLDataType () const | |
operator MXNetDataType () const | |
operator PackedFunc () const | |
template<typename FType > | |
operator TypedPackedFunc< FType > () const | |
MXNetRetValue & | operator= (MXNetRetValue &&other) |
MXNetRetValue & | operator= (double value) |
MXNetRetValue & | operator= (std::nullptr_t value) |
MXNetRetValue & | operator= (void *value) |
MXNetRetValue & | operator= (int64_t value) |
MXNetRetValue & | operator= (int value) |
MXNetRetValue & | operator= (bool value) |
MXNetRetValue & | operator= (std::string value) |
MXNetRetValue & | operator= (DLDataType t) |
MXNetRetValue & | operator= (const MXNetDataType &other) |
MXNetRetValue & | operator= (MXNetByteArray value) |
MXNetRetValue & | operator= (ObjectRef other) |
template<typename T > | |
MXNetRetValue & | operator= (ObjectPtr< T > other) |
MXNetRetValue & | operator= (PackedFunc f) |
template<typename FType > | |
MXNetRetValue & | operator= (const TypedPackedFunc< FType > &f) |
MXNetRetValue & | operator= (const MXNetRetValue &other) |
MXNetRetValue & | operator= (const MXNetArgValue &other) |
MXNetRetValue & | operator= (::mxnet::NDArray *value) |
template<typename T , typename = typename std::enable_if< extension_type_info<T>::code != 0>::type> | |
MXNetRetValue & | operator= (const T &other) |
void | MoveToCHost (MXNetValue *ret_value, int *ret_type_code) |
Move the value back to front-end via C API. This marks the current container as null. The managed resources is moved to front-end and the front end should take charge in managing them. More... | |
const MXNetValue & | value () const |
template<typename T , typename = typename std::enable_if< std::is_class<T>::value>::type> | |
operator T () const | |
template<typename TObjectRef > | |
TObjectRef | AsObjectRef () const |
Public Member Functions inherited from mxnet::runtime::MXNetPODValue_ | |
operator double () const | |
operator int64_t () const | |
operator uint64_t () const | |
operator int () const | |
operator bool () const | |
operator void * () const | |
operator ObjectRef () const | |
template<typename TObjectRef , typename = typename std::enable_if< std::is_class<TObjectRef>::value>::type> | |
bool | IsObjectRef () const |
int | type_code () const |
template<typename T > | |
T * | ptr () const |
return handle as specific pointer type. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mxnet::runtime::MXNetPODValue_ | |
MXNetPODValue_ () | |
MXNetPODValue_ (MXNetValue value, int type_code) | |
Protected Attributes inherited from mxnet::runtime::MXNetPODValue_ | |
MXNetValue | value_ |
The value. More... | |
int | type_code_ |
the type code More... | |
Return Value container, Unlike MXNetArgValue, which only holds reference and do not delete the underlying container during destruction.
MXNetRetValue holds value and will manage the underlying containers when it stores a complicated data type.
|
inline |
default constructor
|
inline |
move constructor from anoter return value.
other | The other return value. |
|
inline |
destructor
|
inline |
|
inline |
|
inline |
Move the value back to front-end via C API. This marks the current container as null. The managed resources is moved to front-end and the front end should take charge in managing them.
ret_value | The return value. |
ret_type_code | The return type code. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |