|
tvm
|
Functions | |
| bool | IsIndexType (DLDataType type) |
| Check whether type is used to represent index. | |
| bool | IsIndexTypedExpr (const ExprObj *expr) |
| bool | IsIndexTypedExpr (const PrimExpr &expr) |
| bool | IsRepresentable (const ffi::BigInt &value, const PrimType &dtype) |
| Whether an exact integer is a valid literal of the given scalar type. | |
| bool | IsInFloat32Range (double value) |
| Check float32 range, allowing rounding and supported special values. | |
|
inline |
Check whether type is used to represent index.
Index types are frequently used in shape computation and need to be aggressively constant-folded.
| type | The type to represent index. |
|
inline |
|
inline |
|
inline |
Check float32 range, allowing rounding and supported special values.
|
inline |
Whether an exact integer is a valid literal of the given scalar type.