Template Struct FallbackOnlyTraitsBase#

Inheritance Relationships#

Base Type#

  • public tvm::ffi::TypeTraitsBase

Struct Documentation#

template<typename T, typename ...FallbackTypes>
struct FallbackOnlyTraitsBase : public tvm::ffi::TypeTraitsBase#

Helper class that convert to T only via the FallbackTypes.

The conversion will go through the FallbackTypes in the order specified in the template parameter.

Note

TypeTraits<T> must be derived from this class and define ConvertFallbackValue(FallbackType)->T for each FallbackType

Template Parameters:
  • T – The type of the target value.

  • FallbackTypes – The type of the fallback value.