ArmNN
 21.05
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 88 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const DetectionPostProcessDescriptor desc 
)
static

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

227 {
228  fn("MaxDetections", std::to_string(desc.m_MaxDetections));
229  fn("MaxClassesPerDetection", std::to_string(desc.m_MaxClassesPerDetection));
230  fn("DetectionsPerClass", std::to_string(desc.m_DetectionsPerClass));
231  fn("NmsScoreThreshold", std::to_string(desc.m_NmsScoreThreshold));
232  fn("NmsIouThreshold", std::to_string(desc.m_NmsIouThreshold));
233  fn("NumClasses", std::to_string(desc.m_NumClasses));
234  fn("UseRegularNms", (desc.m_UseRegularNms ? "true" : "false"));
235  {
236  std::stringstream ss;
237  ss << "(" << desc.m_ScaleX << "," << desc.m_ScaleY << ")";
238  fn("Scale(X,Y)", ss.str());
239  }
240 
241  {
242  std::stringstream ss;
243  ss << "(" << desc.m_ScaleW << "," << desc.m_ScaleH << ")";
244  fn("Scale(W,H)", ss.str());
245  }
246 }

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