MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / configure

Method configure

src/core/CPP/kernels/CPPUpsampleKernel.cpp:45–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void 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
65void CPPUpsampleKernel::run(const Window &window, const ThreadInfo &info)
66{

Callers

nothing calls this directly

Calls 7

StepsClass · 0.85
ValidRegionClass · 0.85
calculate_max_windowFunction · 0.50
infoMethod · 0.45
set_num_dimensionsMethod · 0.45
num_dimensionsMethod · 0.45
set_valid_regionMethod · 0.45

Tested by

no test coverage detected