ArmNN
 21.08
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 53 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const DetectionPostProcessDescriptor desc 
)
static

Definition at line 97 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.

99 {
100  fn("MaxDetections", std::to_string(desc.m_MaxDetections));
101  fn("MaxClassesPerDetection", std::to_string(desc.m_MaxClassesPerDetection));
102  fn("DetectionsPerClass", std::to_string(desc.m_DetectionsPerClass));
103  fn("NmsScoreThreshold", std::to_string(desc.m_NmsScoreThreshold));
104  fn("NmsIouThreshold", std::to_string(desc.m_NmsIouThreshold));
105  fn("NumClasses", std::to_string(desc.m_NumClasses));
106  fn("UseRegularNms", (desc.m_UseRegularNms ? "true" : "false"));
107  {
108  std::stringstream ss;
109  ss << "(" << desc.m_ScaleX << "," << desc.m_ScaleY << ")";
110  fn("Scale(X,Y)", ss.str());
111  }
112 
113  {
114  std::stringstream ss;
115  ss << "(" << desc.m_ScaleW << "," << desc.m_ScaleH << ")";
116  fn("Scale(W,H)", ss.str());
117  }
118 }

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