ArmNN
 21.02
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 133 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const MeanDescriptor desc 
)
static

Definition at line 365 of file SerializeLayerParameters.cpp.

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

366 {
367  {
368  std::stringstream ss;
369  int count = 0;
370  for (auto&& var : desc.m_Axis)
371  {
372  if (count > 0)
373  {
374  ss << ",";
375  }
376  ss << var;
377  ++count;
378  }
379  fn("Axis", ss.str());
380  }
381  fn("KeepDims", (desc.m_KeepDims ? "true" : "false"));
382 }

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