ArmNN
 21.02
StringifyLayerParameters< DetectionPostProcessDescriptor > Struct Template Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

static void Serialize (ParameterStringifyFunction &fn, const DetectionPostProcessDescriptor &desc)
 

Detailed Description

template<>
struct armnn::StringifyLayerParameters< DetectionPostProcessDescriptor >

Definition at line 83 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const DetectionPostProcessDescriptor desc 
)
static

Definition at line 205 of file SerializeLayerParameters.cpp.

References DetectionPostProcessDescriptor::m_DetectionsPerClass, DetectionPostProcessDescriptor::m_MaxClassesPerDetection, DetectionPostProcessDescriptor::m_MaxDetections, DetectionPostProcessDescriptor::m_NmsIouThreshold, DetectionPostProcessDescriptor::m_NmsScoreThreshold, DetectionPostProcessDescriptor::m_NumClasses, DetectionPostProcessDescriptor::m_ScaleH, DetectionPostProcessDescriptor::m_ScaleW, DetectionPostProcessDescriptor::m_ScaleX, DetectionPostProcessDescriptor::m_ScaleY, and DetectionPostProcessDescriptor::m_UseRegularNms.

207 {
208  fn("MaxDetections", std::to_string(desc.m_MaxDetections));
209  fn("MaxClassesPerDetection", std::to_string(desc.m_MaxClassesPerDetection));
210  fn("DetectionsPerClass", std::to_string(desc.m_DetectionsPerClass));
211  fn("NmsScoreThreshold", std::to_string(desc.m_NmsScoreThreshold));
212  fn("NmsIouThreshold", std::to_string(desc.m_NmsIouThreshold));
213  fn("NumClasses", std::to_string(desc.m_NumClasses));
214  fn("UseRegularNms", (desc.m_UseRegularNms ? "true" : "false"));
215  {
216  std::stringstream ss;
217  ss << "(" << desc.m_ScaleX << "," << desc.m_ScaleY << ")";
218  fn("Scale(X,Y)", ss.str());
219  }
220 
221  {
222  std::stringstream ss;
223  ss << "(" << desc.m_ScaleW << "," << desc.m_ScaleH << ")";
224  fn("Scale(W,H)", ss.str());
225  }
226 }

The documentation for this struct was generated from the following files: