ArmNN
 22.05.01
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 63 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const DetectionPostProcessDescriptor desc 
)
static

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

133 {
134  fn("MaxDetections", std::to_string(desc.m_MaxDetections));
135  fn("MaxClassesPerDetection", std::to_string(desc.m_MaxClassesPerDetection));
136  fn("DetectionsPerClass", std::to_string(desc.m_DetectionsPerClass));
137  fn("NmsScoreThreshold", std::to_string(desc.m_NmsScoreThreshold));
138  fn("NmsIouThreshold", std::to_string(desc.m_NmsIouThreshold));
139  fn("NumClasses", std::to_string(desc.m_NumClasses));
140  fn("UseRegularNms", (desc.m_UseRegularNms ? "true" : "false"));
141  {
142  std::stringstream ss;
143  ss << "(" << desc.m_ScaleX << "," << desc.m_ScaleY << ")";
144  fn("Scale(X,Y)", ss.str());
145  }
146 
147  {
148  std::stringstream ss;
149  ss << "(" << desc.m_ScaleW << "," << desc.m_ScaleH << ")";
150  fn("Scale(W,H)", ss.str());
151  }
152 }

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