| 32 | const int num = 10000; |
| 33 | |
| 34 | struct clamp_params { |
| 35 | dim4 size_; |
| 36 | dtype in_type_; |
| 37 | dtype lo_type_; |
| 38 | dtype hi_type_; |
| 39 | dtype out_type_; |
| 40 | |
| 41 | clamp_params(dim4 size, dtype itype, dtype ltype, dtype htype, dtype otype) |
| 42 | : size_(size) |
| 43 | , in_type_(itype) |
| 44 | , lo_type_(ltype) |
| 45 | , hi_type_(htype) |
| 46 | , out_type_(otype) {} |
| 47 | }; |
| 48 | |
| 49 | template<typename T> |
| 50 | class Clamp : public ::testing::TestWithParam<clamp_params> { |