tvm
Public Member Functions | List of all members
tvm::runtime::TVMMovableArgValueWithContext_ Class Reference

Internal auxiliary struct for TypedPackedFunc to indicate a movable argument with additional context information (function name and argument index) for better error reporting. More...

#include <packed_func.h>

Collaboration diagram for tvm::runtime::TVMMovableArgValueWithContext_:

Public Member Functions

 TVMMovableArgValueWithContext_ (TVMValue value, int type_code, int arg_index, const std::string *optional_name, FSig *f_sig)
 move constructor from another return value. More...
 
template<typename T >
 operator T () const
 

Detailed Description

Internal auxiliary struct for TypedPackedFunc to indicate a movable argument with additional context information (function name and argument index) for better error reporting.

See also
MovableArgValue_
Note
For internal development purpose only.

Constructor & Destructor Documentation

◆ TVMMovableArgValueWithContext_()

tvm::runtime::TVMMovableArgValueWithContext_::TVMMovableArgValueWithContext_ ( TVMValue  value,
int  type_code,
int  arg_index,
const std::string *  optional_name,
FSig f_sig 
)
inline

move constructor from another return value.

Parameters
valueThe other return value.
type_codeThe code associated with the type of the value.
arg_indexIn a function call, this argument is at index arg_index (0-indexed).
optional_nameName of the function being called. Can be nullptr if the function is not.
f_sigPointer to static function outputting signature of the function being called. named.

Member Function Documentation

◆ operator T()

template<typename T >
tvm::runtime::TVMMovableArgValueWithContext_::operator T ( ) const
inline

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