IVGCVSW-3726 Upload ArmNN Doxygen files
* Upload current ArmNN Doxygen files
Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285
diff --git a/Documentation/class_cifar10_database.html b/Documentation/class_cifar10_database.html
new file mode 100644
index 0000000..190255c
--- /dev/null
+++ b/Documentation/class_cifar10_database.html
@@ -0,0 +1,226 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>ArmNN: Cifar10Database Class Reference</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtreedata.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">ArmNN
+  <span id="projectnumber">NotReleased</span>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ <div id="nav-sync" class="sync"></div>
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+$(document).ready(function(){initNavTree('class_cifar10_database.html','');});
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="summary">
+<a href="#pub-types">Public Types</a> |
+<a href="#pub-methods">Public Member Functions</a> |
+<a href="class_cifar10_database-members.html">List of all members</a> </div>
+ <div class="headertitle">
+<div class="title">Cifar10Database Class Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+
+<p><code>#include <<a class="el" href="_cifar10_database_8hpp_source.html">Cifar10Database.hpp</a>></code></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
+Public Types</h2></td></tr>
+<tr class="memitem:a9d5c241a4bb952f78d140229d17f2465"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="class_cifar10_database.html#a9d5c241a4bb952f78d140229d17f2465">DataType</a> = float</td></tr>
+<tr class="separator:a9d5c241a4bb952f78d140229d17f2465"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a0b6d5426d97a60215cdcd609dee35cc9"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="class_cifar10_database.html#a0b6d5426d97a60215cdcd609dee35cc9">TTestCaseData</a> = <a class="el" href="class_classifier_test_case_data.html">ClassifierTestCaseData</a>< <a class="el" href="class_cifar10_database.html#a9d5c241a4bb952f78d140229d17f2465">DataType</a> ></td></tr>
+<tr class="separator:a0b6d5426d97a60215cdcd609dee35cc9"><td class="memSeparator" colspan="2"> </td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:ac907ba7482a33b174b9d8477ca80872f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_cifar10_database.html#ac907ba7482a33b174b9d8477ca80872f">Cifar10Database</a> (const std::string &binaryFileDirectory, bool rgbPack=<a class="el" href="_ref_layer_tests_8cpp.html#a67e2647a90dec71bb79c8b38872ba570">false</a>)</td></tr>
+<tr class="separator:ac907ba7482a33b174b9d8477ca80872f"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:ae1e69b726d674896305197f6a439201e"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="class_cifar10_database.html#a0b6d5426d97a60215cdcd609dee35cc9">TTestCaseData</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_cifar10_database.html#ae1e69b726d674896305197f6a439201e">GetTestCaseData</a> (unsigned int testCaseId)</td></tr>
+<tr class="separator:ae1e69b726d674896305197f6a439201e"><td class="memSeparator" colspan="2"> </td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock">
+<p class="definition">Definition at line <a class="el" href="_cifar10_database_8hpp_source.html#l00012">12</a> of file <a class="el" href="_cifar10_database_8hpp_source.html">Cifar10Database.hpp</a>.</p>
+</div><h2 class="groupheader">Member Typedef Documentation</h2>
+<a id="a9d5c241a4bb952f78d140229d17f2465"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a9d5c241a4bb952f78d140229d17f2465">◆ </a></span>DataType</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">using <a class="el" href="class_cifar10_database.html#a9d5c241a4bb952f78d140229d17f2465">DataType</a> = float</td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p class="definition">Definition at line <a class="el" href="_cifar10_database_8hpp_source.html#l00015">15</a> of file <a class="el" href="_cifar10_database_8hpp_source.html">Cifar10Database.hpp</a>.</p>
+
+</div>
+</div>
+<a id="a0b6d5426d97a60215cdcd609dee35cc9"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a0b6d5426d97a60215cdcd609dee35cc9">◆ </a></span>TTestCaseData</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">using <a class="el" href="class_cifar10_database.html#a0b6d5426d97a60215cdcd609dee35cc9">TTestCaseData</a> = <a class="el" href="class_classifier_test_case_data.html">ClassifierTestCaseData</a><<a class="el" href="class_cifar10_database.html#a9d5c241a4bb952f78d140229d17f2465">DataType</a>></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p class="definition">Definition at line <a class="el" href="_cifar10_database_8hpp_source.html#l00016">16</a> of file <a class="el" href="_cifar10_database_8hpp_source.html">Cifar10Database.hpp</a>.</p>
+
+</div>
+</div>
+<h2 class="groupheader">Constructor & Destructor Documentation</h2>
+<a id="ac907ba7482a33b174b9d8477ca80872f"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ac907ba7482a33b174b9d8477ca80872f">◆ </a></span>Cifar10Database()</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="class_cifar10_database.html">Cifar10Database</a> </td>
+ <td>(</td>
+ <td class="paramtype">const std::string & </td>
+ <td class="paramname"><em>binaryFileDirectory</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">bool </td>
+ <td class="paramname"><em>rgbPack</em> = <code><a class="el" href="_ref_layer_tests_8cpp.html#a67e2647a90dec71bb79c8b38872ba570">false</a></code> </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p class="definition">Definition at line <a class="el" href="_cifar10_database_8cpp_source.html#l00015">15</a> of file <a class="el" href="_cifar10_database_8cpp_source.html">Cifar10Database.cpp</a>.</p>
+<div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  : m_BinaryDirectory(binaryFileDirectory), m_RgbPack(rgbPack)</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> }</div></div><!-- fragment -->
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a id="ae1e69b726d674896305197f6a439201e"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ae1e69b726d674896305197f6a439201e">◆ </a></span>GetTestCaseData()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">std::unique_ptr< <a class="el" href="class_cifar10_database.html#a0b6d5426d97a60215cdcd609dee35cc9">Cifar10Database::TTestCaseData</a> > GetTestCaseData </td>
+ <td>(</td>
+ <td class="paramtype">unsigned int </td>
+ <td class="paramname"><em>testCaseId</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p class="definition">Definition at line <a class="el" href="_cifar10_database_8cpp_source.html#l00020">20</a> of file <a class="el" href="_cifar10_database_8cpp_source.html">Cifar10Database.cpp</a>.</p>
+
+<p class="reference">References <a class="el" href="_logging_8hpp_source.html#l00163">ARMNN_LOG</a>, and <a class="el" href="_cifar10_database_8cpp_source.html#l00013">g_kCifar10ImageByteSize</a>.</p>
+
+<p class="reference">Referenced by <a class="el" href="_multiple_networks_cifar10_8cpp_source.html#l00022">main()</a>.</p>
+<div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  std::vector<unsigned char> I(<a class="code" href="_cifar10_database_8cpp.html#a62c662e6ad904d584d176f5f0b108d8f">g_kCifar10ImageByteSize</a>);</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  std::string fullpath = m_BinaryDirectory + std::string(<span class="stringliteral">"test_batch.bin"</span>);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  std::ifstream fileStream(fullpath, std::ios::binary);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">if</span> (!fileStream.is_open())</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"Failed to load "</span> << fullpath;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  fileStream.seekg(testCaseId * <a class="code" href="_cifar10_database_8cpp.html#a62c662e6ad904d584d176f5f0b108d8f">g_kCifar10ImageByteSize</a>, std::ios_base::beg);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  fileStream.read(reinterpret_cast<char*>(&I[0]), g_kCifar10ImageByteSize);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</span> (!fileStream.good())</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"Failed to read "</span> << fullpath;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::vector<float> inputImageData;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  inputImageData.resize(g_kCifar10ImageByteSize - 1);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> step;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countR_o;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countG_o;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countB_o;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countR = 1;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countG = 1 + 32 * 32;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> countB = 1 + 2 * 32 * 32;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">if</span> (m_RgbPack)</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  countR_o = 0;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  countG_o = 1;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  countB_o = 2;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  step = 3;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  countR_o = 0;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  countG_o = 32 * 32;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  countB_o = 2 * 32 * 32;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  step = 1;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> h = 0; h < 32; h++)</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> w = 0; w < 32; w++)</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  inputImageData[countR_o] = boost::numeric_cast<<span class="keywordtype">float</span>>(I[countR++]);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  inputImageData[countG_o] = boost::numeric_cast<<span class="keywordtype">float</span>>(I[countG++]);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  inputImageData[countB_o] = boost::numeric_cast<<span class="keywordtype">float</span>>(I[countB++]);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  countR_o += step;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  countG_o += step;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  countB_o += step;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label = boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(I[0]);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> std::make_unique<TTestCaseData>(label, std::move(inputImageData));</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> }</div><div class="ttc" id="_logging_8hpp_html_a7b6ad073975f437ec38ca7d20154727f"><div class="ttname"><a href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a></div><div class="ttdeci">#define ARMNN_LOG(severity)</div><div class="ttdef"><b>Definition:</b> <a href="_logging_8hpp_source.html#l00163">Logging.hpp:163</a></div></div>
+<div class="ttc" id="_cifar10_database_8cpp_html_a62c662e6ad904d584d176f5f0b108d8f"><div class="ttname"><a href="_cifar10_database_8cpp.html#a62c662e6ad904d584d176f5f0b108d8f">g_kCifar10ImageByteSize</a></div><div class="ttdeci">constexpr unsigned int g_kCifar10ImageByteSize</div><div class="ttdef"><b>Definition:</b> <a href="_cifar10_database_8cpp_source.html#l00013">Cifar10Database.cpp:13</a></div></div>
+</div><!-- fragment -->
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li>tests/<a class="el" href="_cifar10_database_8hpp_source.html">Cifar10Database.hpp</a></li>
+<li>tests/<a class="el" href="_cifar10_database_8cpp_source.html">Cifar10Database.cpp</a></li>
+</ul>
+</div><!-- contents -->
+</div><!-- doc-content -->
+<!-- start footer part -->
+<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
+ <ul>
+ <li class="navelem"><a class="el" href="class_cifar10_database.html">Cifar10Database</a></li>
+ <li class="footer">Generated on Fri Mar 13 2020 16:07:01 for ArmNN by
+ <a href="http://www.doxygen.org/index.html">
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
+ </ul>
+</div>
+</body>
+</html>