| 46 | NEGEMMLowpOutputStage::~NEGEMMLowpOutputStage() = default; |
| 47 | |
| 48 | void 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 | |
| 68 | Status NEGEMMLowpOutputStage::validate(const ITensorInfo *input, |
| 69 | const ITensorInfo *bias, |