mxnet
Public Member Functions | List of all members
mxnet::runtime::MXNetArgValue Class Reference

A single argument value to PackedFunc. Containing both type_code and MXNetValue. More...

#include <packed_func.h>

Inheritance diagram for mxnet::runtime::MXNetArgValue:
Inheritance graph
Collaboration diagram for mxnet::runtime::MXNetArgValue:
Collaboration graph

Public Member Functions

 MXNetArgValue ()
 default constructor More...
 
 MXNetArgValue (MXNetValue value, int type_code)
 constructor More...
 
 operator std::string () const
 
 operator DLDataType () const
 
 operator MXNetDataType () const
 
 operator::mxnet::NDArray * () const
 
 operator PackedFunc () const
 
template<typename FType >
 operator TypedPackedFunc< FType > () const
 
const MXNetValuevalue () const
 
template<typename TObjectRef >
TObjectRef AsObjectRef () const
 
template<typename T , typename = typename std::enable_if< std::is_class<T>::value>::type>
 operator T () 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...
 

Detailed Description

A single argument value to PackedFunc. Containing both type_code and MXNetValue.

Provides utilities to do type cast into other types.

Constructor & Destructor Documentation

mxnet::runtime::MXNetArgValue::MXNetArgValue ( )
inline

default constructor

mxnet::runtime::MXNetArgValue::MXNetArgValue ( MXNetValue  value,
int  type_code 
)
inline

constructor

Parameters
valueof the function
type_codeThe type code.

Member Function Documentation

template<typename TObjectRef >
TObjectRef mxnet::runtime::MXNetArgValue::AsObjectRef ( ) const
inline
mxnet::runtime::MXNetArgValue::operator DLDataType ( ) const
inline
mxnet::runtime::MXNetArgValue::operator MXNetDataType ( ) const
inline
mxnet::runtime::MXNetArgValue::operator PackedFunc ( ) const
inline
mxnet::runtime::MXNetArgValue::operator std::string ( ) const
inline
template<typename T , typename = typename std::enable_if< std::is_class<T>::value>::type>
mxnet::runtime::MXNetArgValue::operator T ( ) const
inline
template<typename FType >
mxnet::runtime::MXNetArgValue::operator TypedPackedFunc< FType > ( ) const
inline
mxnet::runtime::MXNetArgValue::operator::mxnet::NDArray * ( ) const
inline
const MXNetValue& mxnet::runtime::MXNetArgValue::value ( ) const
inline

The documentation for this class was generated from the following file: