<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>TensorFlow.Examples.MNIST.Parse</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Examples-MNIST-Parse.html");};
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-mnist-0.1.0.0: TensorFlow demo application for learning MNIST model.</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">TensorFlow.Examples.MNIST.Parse</p></div><divid="synopsis"><pid="control.syn"class="caption expander"onclick="toggleSection('syn')">Synopsis</p><ulid="section.syn"class="hide"onclick="toggleSection('syn')"><liclass="src short"><spanclass="keyword">type</span><ahref="#t:MNIST">MNIST</a> = Vector <ahref="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a></li><liclass="src short"><ahref="#v:drawMNIST">drawMNIST</a> :: <ahref="TensorFlow-Examples-MNIST-Parse.html#t:MNIST">MNIST</a> -> Text</li><liclass="src short"><ahref="#v:checkEndian">checkEndian</a> :: <ahref="../binary-0.7.5.0/Data-Binary-Get-Internal.html#t:Get">Get</a> ()</li><liclass="src short"><ahref="#v:readMNISTSamples">readMNISTSamples</a> :: <ahref="../base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<ahref="TensorFlow-Examples-MNIST-Parse.html#t:MNIST">MNIST</a>]</li><liclass="src short"><ahref="#v:readMNISTLabels">readMNISTLabels</a> :: <ahref="../base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<ahref="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a>]</li><liclass="src short"><ahref="#v:readMessageFromFileOrDie">readMessageFromFileOrDie</a> :: Message m =><ahref="../base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> m</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><spanclass="keyword">type</span><aname="t:MNIST"class="def">MNIST</a> = Vector <ahref="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a></p><divclass="doc"><p>Utilities specific to MNIST.</p></div></div><divclass="top"><pclass="src"><aname="v:drawMNIST"class="def">drawMNIST</a> :: <ahref="TensorFlow-Examples-MNIST-Parse.html#t:MNIST">MNIST</a> -> Text</p><divclass="doc"><p>Produces a unicode rendering of the MNIST digit sample.</p></div></div><divclass="top"><pclass="src"><aname="v:checkEndian"class="def">checkEndian</a> :: <ahref="../binary-0.7.5.0/Data-Binary-Get-Internal.html#t:Get">Get</a> ()</p><divclass="doc"><p>Check's the file's endianess, throwing an error if it's not as expected.</p></div></div><divclass="top"><pclass="src"><aname="v:readMNISTSamples"class="def">readMNISTSamples</a> :: <ahref="../base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<ahref="TensorFlow-Examples-MNIST-Parse.html#t:MNIST">MNIST</a>]</p><divclass="doc"><p>Reads an MNIST file and returns a list of samples.</p></div></div><divclass="top"><pclass="src"><aname="v:readMNISTLabels"class="def">readMNISTLabels</a> :: <ahref="../base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<ahref="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a>]</p><divclass="doc"><p>Reads a list of MNIST labels from a file and returns them.</p></div></div><divclass="top"><pclass="src"><aname="v:readMessageFromFileOrDie"class="def">readMessageFromFileOrDie</a> :: Message m =><ahref="../base-4.8.2.0/System-IO.html#t:FilePath">FilePath</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> m</p></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>