|
tvm
|
Traced wrapper for regular (non-container) TVM objects. More...
#include <traced_object.h>
Public Types | |
| using | ObjectRefType = RefT |
Public Member Functions | |
| TracedObject (const RefT &object_ref, ObjectPath path) | |
| template<typename DerivedRef > | |
| TracedObject (const TracedObject< DerivedRef > &derived) | |
| template<typename T , typename BaseType > | |
| detail::TracedObjectWrapperSelector< T >::Type | GetAttr (T BaseType::*member_ptr) const |
| Get a traced wrapper for an attribute of the wrapped object. More... | |
| const RefT & | Get () const |
| Access the wrapped object. More... | |
| template<typename RefU > | |
| bool | IsInstance () const |
Check if the reference to the wrapped object can be converted to RefU. More... | |
| bool | defined () const |
| Same as Get().defined(). More... | |
| template<typename RefU > | |
| TracedObject< RefU > | Downcast () const |
| Convert the wrapped reference type to a subtype. More... | |
| template<typename RefU > | |
| TracedOptional< RefU > | TryDowncast () const |
| Convert the wrapped reference type to a subtype. More... | |
| const ObjectPath & | GetPath () const |
| Get the path of the wrapped object. More... | |
Traced wrapper for regular (non-container) TVM objects.
| using tvm::TracedObject< RefT >::ObjectRefType = RefT |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Convert the wrapped reference type to a subtype.
Throws an exception if IsInstance<RefU>() is false.
|
inline |
Access the wrapped object.
|
inline |
Get a traced wrapper for an attribute of the wrapped object.
|
inline |
Get the path of the wrapped object.
|
inline |
Check if the reference to the wrapped object can be converted to RefU.
|
inline |
Convert the wrapped reference type to a subtype.
Returns an empty optional if IsInstance<RefU>() is false.
1.8.13