ArmNN
 20.05
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 361 of file SerializeLayerParameters.cpp.

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

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

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