| 55 | constexpr bool isHalf(af::dtype type) { return (type == f16); } |
| 56 | |
| 57 | constexpr bool isRealFloating(af::dtype type) { |
| 58 | return (type == f64 || type == f32 || type == f16); |
| 59 | } |
| 60 | |
| 61 | constexpr bool isInteger(af::dtype type) { |
| 62 | return (type == s32 || type == u32 || type == s64 || type == u64 || |