ArmNN  NotReleased
MnistDatabase.cpp File Reference
#include "MnistDatabase.hpp"
#include <armnn/Logging.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <boost/assert.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 16 of file MnistDatabase.cpp.

Referenced by MnistDatabase::GetTestCaseData().

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

Variable Documentation

◆ g_kMnistImageByteSize

constexpr int g_kMnistImageByteSize = 28 * 28

Definition at line 14 of file MnistDatabase.cpp.

Referenced by MnistDatabase::GetTestCaseData().