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

Method configure

src/runtime/NEON/functions/NEGEMMLowpOutputStage.cpp:48–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46NEGEMMLowpOutputStage::~NEGEMMLowpOutputStage() = default;
47
48void NEGEMMLowpOutputStage::configure(const ITensor *input,
49 const ITensor *bias,
50 ITensor *output,
51 const GEMMLowpOutputStageInfo &info)
52{
53 ARM_COMPUTE_TRACE_EVENT(ARM_COMPUTE_PROF_CAT_CPU, ARM_COMPUTE_PROF_LVL_CPU, "NEGEMMLowpOutputStage::configure");
54 // Perform validate step
55 ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
56 ARM_COMPUTE_ERROR_THROW_ON(
57 NEGEMMLowpOutputStage::validate(input->info(), bias != nullptr ? bias->info() : nullptr, output->info(), info));
58 _impl->src = input;
59 _impl->bias = bias;
60 _impl->dst = output;
61 _impl->op = std::make_unique<cpu::CpuGemmLowpOutputStage>();
62 _impl->op->configure(input->info(), (bias == nullptr) ? nullptr : bias->info(), output->info(), info);
63
64 _impl->run_pack = {
65 {TensorType::ACL_SRC, _impl->src}, {TensorType::ACL_BIAS, _impl->bias}, {TensorType::ACL_DST, _impl->dst}};
66}
67
68Status NEGEMMLowpOutputStage::validate(const ITensorInfo *input,
69 const ITensorInfo *bias,

Callers

nothing calls this directly

Calls 2

validateFunction · 0.50
infoMethod · 0.45

Tested by

no test coverage detected