ArmNN
 22.05
MnistDatabase.cpp File Reference
#include "MnistDatabase.hpp"
#include <armnn/Logging.hpp>
#include <fstream>
#include <vector>

Go to the source code of this file.

Functions

void EndianSwap (unsigned int &x)
 

Variables

constexpr int g_kMnistImageByteSize = 28 * 28
 

Function Documentation

◆ EndianSwap()

void EndianSwap ( unsigned int &  x)

Definition at line 14 of file MnistDatabase.cpp.

Referenced by MnistDatabase::GetTestCaseData().

15 {
16  x = (x >> 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | (x << 24);
17 }

Variable Documentation

◆ g_kMnistImageByteSize

constexpr int g_kMnistImageByteSize = 28 * 28

Definition at line 12 of file MnistDatabase.cpp.

Referenced by MnistDatabase::GetTestCaseData().