Template Function tvm::cast#
Defined in File pattern_match.h
Function Documentation#
-
template<typename DType, typename TA>
inline PCastExpr<DType, TA> tvm::cast(const Pattern<TA> &value, const Pattern<DType> &dtype)# Construct a cast pattern.
- Parameters:
value – The input value.
dtype – The target data type, can be PVar<DLDataType> or PConst<DLDataType>.
- Template Parameters:
DType – The pattern type of type.
TA – The pattern type of value.
- Returns:
The result pattern.