| 46 | } |
| 47 | |
| 48 | af::array randgen(const int num, dtype ty) { |
| 49 | af::array tmp = round(1 + 2 * af::randu(num, f32)).as(ty); |
| 50 | tmp.eval(); |
| 51 | return tmp; |
| 52 | } |
| 53 | |
| 54 | #define MY_ASSERT_NEAR(aa, bb, cc) ASSERT_NEAR(abs(aa), abs(bb), (cc)) |
| 55 |
no test coverage detected