ArmNN
 26.01
Loading...
Searching...
No Matches
StringifyLayerParameters< BatchToSpaceNdDescriptor > Struct Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

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

Detailed Description

Definition at line 43 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

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

Definition at line 38 of file SerializeLayerParameters.cpp.

40{
41 {
42 std::stringstream ss;
43 int count = 0;
44 for (auto&& var : desc.m_BlockShape)
45 {
46 if (count > 0)
47 {
48 ss << ",";
49 }
50 ss << var;
51 ++count;
52 }
53 fn("BlockShape", ss.str());
54 }
55
56 {
57 std::stringstream ss;
58 int count = 0;
59 for (auto&& var : desc.m_Crops)
60 {
61 if (count > 0)
62 {
63 ss << ",";
64 }
65 ss << "[" << var.first << "," << var.second << "]";
66 ++count;
67 }
68 fn("Crops", ss.str());
69 }
70
71 fn("DataLayout", GetDataLayoutName(desc.m_DataLayout));
72}
constexpr const char * GetDataLayoutName(DataLayout dataLayout)

References armnn::GetDataLayoutName(), BatchToSpaceNdDescriptor::m_BlockShape, BatchToSpaceNdDescriptor::m_Crops, and BatchToSpaceNdDescriptor::m_DataLayout.


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