tvm
Public Member Functions | List of all members
tvm::TracedBasicValue< T > Class Template Reference

Traced wrapper for basic values (i.e. non-TVM objects) More...

#include <traced_object.h>

Collaboration diagram for tvm::TracedBasicValue< T >:

Public Member Functions

 TracedBasicValue (const T &value, ObjectPath path)
 
const T & Get () const
 Access the wrapped value. More...
 
const ObjectPathGetPath () const
 Get the path of the wrapped value. More...
 
template<typename F >
detail::TracedObjectWrapperSelector< typename std::invoke_result< F, const T & >::type >::Type ApplyFunc (F &&f) const
 Transform the wrapped value without changing its path. More...
 

Detailed Description

template<typename T>
class tvm::TracedBasicValue< T >

Traced wrapper for basic values (i.e. non-TVM objects)

Constructor & Destructor Documentation

◆ TracedBasicValue()

template<typename T>
tvm::TracedBasicValue< T >::TracedBasicValue ( const T &  value,
ObjectPath  path 
)
inlineexplicit

Member Function Documentation

◆ ApplyFunc()

template<typename T>
template<typename F >
detail::TracedObjectWrapperSelector<typename std::invoke_result<F, const T&>::type>::Type tvm::TracedBasicValue< T >::ApplyFunc ( F &&  f) const
inline

Transform the wrapped value without changing its path.

◆ Get()

template<typename T>
const T& tvm::TracedBasicValue< T >::Get ( ) const
inline

Access the wrapped value.

◆ GetPath()

template<typename T>
const ObjectPath& tvm::TracedBasicValue< T >::GetPath ( ) const
inline

Get the path of the wrapped value.


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