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

Method configure

src/gpu/cl/operators/ClScale.cpp:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace opencl
37{
38void ClScale::configure(const CLCompileContext &compile_context,
39 ITensorInfo *src,
40 ITensorInfo *dst,
41 const ScaleKernelInfo &info)
42{
43 ARM_COMPUTE_ERROR_ON_NULLPTR(src);
44 ARM_COMPUTE_LOG_PARAMS(src, dst, info);
45
46 // Configure Scale kernel
47 auto k = std::make_unique<kernels::ClScaleKernel>();
48 k->set_target(CLScheduler::get().target());
49 k->configure(compile_context, src, dst, info);
50 _kernel = std::move(k);
51
52 // Tune kernel
53 CLScheduler::get().tune_kernel_static(*_kernel);
54}
55
56Status ClScale::validate(const ITensorInfo *src, const ITensorInfo *dst, const ScaleKernelInfo &info)
57{

Callers

nothing calls this directly

Calls 3

set_targetMethod · 0.45
targetMethod · 0.45
tune_kernel_staticMethod · 0.45

Tested by

no test coverage detected