| 9 | using namespace resize; |
| 10 | |
| 11 | static void set_nchw_args(IMode imode, std::vector<TestArg>& args) { |
| 12 | param::Resize param; |
| 13 | param.format = param::Resize::Format::NCHW; |
| 14 | param.imode = imode; |
| 15 | rep(n, 4ul) rep(c, 4ul) rep(ih, 4ul) rep(iw, 4ul) rep(oh, 4ul) rep(ow, 4ul) |
| 16 | args.emplace_back( |
| 17 | param, TensorShape{n + 1ul, c + 1ul, ih + 1ul, iw + 1ul}, |
| 18 | TensorShape{n + 1ul, c + 1ul, oh + 1ul, ow + 1ul}); |
| 19 | args.emplace_back(param, TensorShape{1, 1, 10, 10}, TensorShape{1, 1, 20, 20}); |
| 20 | args.emplace_back(param, TensorShape{1, 1, 10, 10}, TensorShape{1, 1, 7, 9}); |
| 21 | args.emplace_back(param, TensorShape{2, 2, 3, 4}, TensorShape{2, 2, 6, 8}); |
| 22 | args.emplace_back(param, TensorShape{1, 2, 6, 8}, TensorShape{1, 2, 3, 4}); |
| 23 | } |
| 24 | |
| 25 | TEST_F(ARM_COMMON, RESIZE_CV) { |
| 26 | std::vector<TestArg> args = get_cv_args(); |
no test coverage detected