ArmNN  NotReleased
DetectionPostProcessLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 namespace armnn
11 {
12 
13 class ScopedCpuTensorHandle;
14 
16 class DetectionPostProcessLayer : public LayerWithParameters<DetectionPostProcessDescriptor>
17 {
18 public:
20  std::unique_ptr<ScopedCpuTensorHandle> m_Anchors;
21 
26  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
27 
30  DetectionPostProcessLayer* Clone(Graph& graph) const override;
31 
34  void ValidateTensorShapesFromInputs() override;
35 
36  void Accept(ILayerVisitor& visitor) const override;
37 
38 protected:
42  DetectionPostProcessLayer(const DetectionPostProcessDescriptor& param, const char* name);
43 
45  ~DetectionPostProcessLayer() = default;
46 
50 };
51 
52 } // namespace armnn
53 
DetectionPostProcessLayer * Clone(Graph &graph) const override
std::unique_ptr< ScopedCpuTensorHandle > m_Anchors
A unique pointer to store Anchor values.
This layer represents a detection postprocess operator.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
std::vector< std::reference_wrapper< std::unique_ptr< ScopedCpuTensorHandle > >> ConstantTensors
Definition: Layer.hpp:356
void Accept(ILayerVisitor &visitor) const override
ConstantTensors GetConstantTensorsByRef() override
~DetectionPostProcessLayer()=default
Default destructor.
DetectionPostProcessLayer(const DetectionPostProcessDescriptor &param, const char *name)
void ValidateTensorShapesFromInputs() override