| 484 | } |
| 485 | |
| 486 | bool noHalfTests(af::dtype ty) { |
| 487 | bool isTypeHalf = (ty == f16); |
| 488 | int dev = af::getDevice(); |
| 489 | bool isHalfSupported = af::isHalfAvailable(dev); |
| 490 | |
| 491 | return ((isTypeHalf && !isHalfSupported) ? true : false); |
| 492 | } |
| 493 | |
| 494 | af_half abs(af_half in) { |
| 495 | half_float::half in_; |
no test coverage detected