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

Method run

src/cpu/operators/CpuReshape.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void CpuReshape::run(ITensorPack &tensors)
52{
53 ARM_COMPUTE_TRACE_EVENT(ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, "CpuReshape::run");
54 ARM_COMPUTE_ERROR_ON_MSG(tensors.empty(), "No inputs provided");
55 if (!_is_prepared)
56 {
57 static_cast<kernels::CpuReshapeKernel *>(_kernel.get())->prepare(tensors);
58 _is_prepared = true;
59 }
60 const auto split_dimension = static_cast<kernels::CpuReshapeKernel *>(_kernel.get())->get_split_dimension();
61 NEScheduler::get().schedule_op(_kernel.get(), split_dimension, _kernel->window(), tensors);
62}
63} // namespace cpu
64} // namespace arm_compute

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
prepareMethod · 0.45
getMethod · 0.45
get_split_dimensionMethod · 0.45
schedule_opMethod · 0.45

Tested by

no test coverage detected