ArmNN
 21.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 138 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const MeanDescriptor desc 
)
static

Definition at line 385 of file SerializeLayerParameters.cpp.

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

386 {
387  {
388  std::stringstream ss;
389  int count = 0;
390  for (auto&& var : desc.m_Axis)
391  {
392  if (count > 0)
393  {
394  ss << ",";
395  }
396  ss << var;
397  ++count;
398  }
399  fn("Axis", ss.str());
400  }
401  fn("KeepDims", (desc.m_KeepDims ? "true" : "false"));
402 }

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