| 43 | } |
| 44 | |
| 45 | void CPPUpsampleKernel::configure(const ITensor *input, ITensor *output, const PadStrideInfo &info) |
| 46 | { |
| 47 | ARM_COMPUTE_ERROR_ON_NULLPTR(input, output); |
| 48 | ARM_COMPUTE_ERROR_ON_SIZE_UNSUPPORTED(input->info(), output->info()); |
| 49 | |
| 50 | _input = input; |
| 51 | _output = output; |
| 52 | _info = info; |
| 53 | |
| 54 | // Configure kernel window |
| 55 | Window win = calculate_max_window(*input->info(), Steps()); |
| 56 | |
| 57 | // The CPPUpsampleKernel doesn't need padding so update_window_and_padding() can be skipped |
| 58 | Coordinates coord; |
| 59 | coord.set_num_dimensions(output->info()->num_dimensions()); |
| 60 | output->info()->set_valid_region(ValidRegion(coord, output->info()->tensor_shape())); |
| 61 | |
| 62 | ICPPKernel::configure(win); |
| 63 | } |
| 64 | |
| 65 | void CPPUpsampleKernel::run(const Window &window, const ThreadInfo &info) |
| 66 | { |
nothing calls this directly
no test coverage detected