Template Struct ObjectRefWithFallbackTraitsBase#
Defined in File type_traits.h
Inheritance Relationships#
Base Type#
public tvm::ffi::ObjectRefTypeTraitsBase< ObjectRefType >
Struct Documentation#
-
template<typename ObjectRefType, typename ...FallbackTypes>
struct ObjectRefWithFallbackTraitsBase : public tvm::ffi::ObjectRefTypeTraitsBase<ObjectRefType># Helper class to define ObjectRef that can be auto-converted from a fallback type, the Traits<ObjectRefType> must be derived from it and define a static methods named ConvertFallbackValue for each FallbackType.
The conversion will go through the FallbackTypes in the order specified in the template parameter.
- Template Parameters:
ObjectRefType – The type of the ObjectRef.
FallbackTypes – The type of the fallback value.