ArmNN
 21.08
StringifyLayerParameters< MeanDescriptor > Struct Template Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

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

Detailed Description

template<>
struct armnn::StringifyLayerParameters< MeanDescriptor >

Definition at line 88 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const MeanDescriptor desc 
)
static

Definition at line 185 of file SerializeLayerParameters.cpp.

References MeanDescriptor::m_Axis, and MeanDescriptor::m_KeepDims.

186 {
187  {
188  std::stringstream ss;
189  int count = 0;
190  for (auto&& var : desc.m_Axis)
191  {
192  if (count > 0)
193  {
194  ss << ",";
195  }
196  ss << var;
197  ++count;
198  }
199  fn("Axis", ss.str());
200  }
201  fn("KeepDims", (desc.m_KeepDims ? "true" : "false"));
202 }

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