2017-10-20 05:56:38 +02:00
<!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/html; charset=UTF-8" / > < title > TensorFlow.Examples.MNIST.Parse< / title > < link href = "ocean.css" rel = "stylesheet" type = "text/css" title = "Ocean" / > < script src = "haddock-util.js" type = "text/javascript" > < / script > < script src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type = "text/javascript" > < / script > < script type = "text/javascript" > / / < ! [ C D A T A [
2016-10-25 21:43:06 +02:00
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Examples-MNIST-Parse.html");};
//]]>
2017-10-20 05:56:38 +02:00
< / script > < / head > < body > < div id = "package-header" > < ul class = "links" id = "page-menu" > < li > < a href = "src/TensorFlow.Examples.MNIST.Parse.html" > Source< / a > < / li > < li > < a href = "index.html" > Contents< / a > < / li > < li > < a href = "doc-index.html" > Index< / a > < / li > < / ul > < p class = "caption" > tensorflow-mnist-0.1.0.0: TensorFlow demo application for learning MNIST model.< / p > < / div > < div id = "content" > < div id = "module-header" > < table class = "info" > < tr > < th > Safe Haskell< / th > < td > None< / td > < / tr > < tr > < th > Language< / th > < td > Haskell2010< / td > < / tr > < / table > < p class = "caption" > TensorFlow.Examples.MNIST.Parse< / p > < / div > < div id = "synopsis" > < p id = "control.syn" class = "caption expander" onclick = "toggleSection('syn')" > Synopsis< / p > < ul id = "section.syn" class = "hide" onclick = "toggleSection('syn')" > < li class = "src short" > < span class = "keyword" > type< / span > < a href = "#t:MNIST" > MNIST< / a > = Vector < a href = "../base-4.9.1.0/Data-Word.html#t:Word8" > Word8< / a > < / li > < li class = "src short" > < a href = "#v:drawMNIST" > drawMNIST< / a > :: < a href = "TensorFlow-Examples-MNIST-Parse.html#t:MNIST" > MNIST< / a > -> Text< / li > < li class = "src short" > < a href = "#v:checkEndian" > checkEndian< / a > :: < a href = "../binary-0.8.3.0/Data-Binary-Get-Internal.html#t:Get" > Get< / a > ()< / li > < li class = "src short" > < a href = "#v:readMNISTSamples" > readMNISTSamples< / a > :: < a href = "../base-4.9.1.0/System-IO.html#t:FilePath" > FilePath< / a > -> < a href = "../base-4.9.1.0/System-IO.html#t:IO" > IO< / a > [< a href = "TensorFlow-Examples-MNIST-Parse.html#t:MNIST" > MNIST< / a > ]< / li > < li class = "src short" > < a href = "#v:readMNISTLabels" > readMNISTLabels< / a > :: < a href = "../base-4.9.1.0/System-IO.html#t:FilePath" > FilePath< / a > -> < a href = "../base-4.9.1.0/System-IO.html#t:IO" > IO< / a > [< a href = "../base-4.9.1.0/Data-Word.html#t:Word8" > Word8< / a > ]< / li > < li class = "src short" > < a href = "#v:readMessageFromFileOrDie" > readMessageFromFileOrDie< / a > :: Message m => < a href = "../base-4.9.1.0/System-IO.html#t:FilePath" > FilePath< / a > -> < a href = "../base-4.9.1.0/System-IO.html#t:IO" > IO< / a > m< / li > < / ul > < / div > < div id = "interface" > < h1 > Documentation< / h1 > < div class = "top" > < p class = "src" > < span class = "keyword" > type< / span > < a id = "t:MNIST" class = "def" > MNIST< / a > = Vector < a href = "../base-4.9.1.0/Data-Word.html#t:Word8" > Word8< / a > < a href = "src/TensorFlow.Examples.MNIST.Parse.html#MNIST" class = "link" > Source< / a > < a href = "#t:MNIST" class = "selflink" > #< / a > < / p > < div class = "doc" > < p > Utilities specific to MNIST.< / p > < / div > < / div > < div class = "top" > < p class = "src" > < a id = "v:drawMNIST" class = "def" > drawMNIST< / a > :: < a href = "TensorFlow-Examples-MNIST-Parse.html#t:MNIST" > MNIST< / a > -> Text < a href = "src/TensorFlow.Examples.MNIST.Parse.html#drawMNIST" class = "link" > Source< / a > < a href = "#v:drawMNIST" class = "selflink" > #< / a > < / p > < div class = "doc" > < p > Produces a unicode rendering of the MNIST digit sample.< / p > < / div > < / div > < div class = "top" > < p class = "src" > < a id = "v:checkEndian" class = "def" > checkEndian< / a > :: < a href = "../binary-0.8.3.0/Data-Binary-Get-Internal.html#t:Get" > Get< / a > () < a href = "src/TensorFlow.Examples.MNIST.Parse.html#checkEndian" class = "link" > Source< / a > < a href = "#v:checkEndian" class = "selflink" > #< / a > < / p > < div class = "doc" > < p > Check's the file's endianess, throwing an error if it's not as expected.< / p > < / div > < / div > < div class = "top" > < p class = "src" > < a id = "v:readMNISTSamples" class = "def" > readMNISTSamples< / a > :: < a href = "../base-4.9.1.0/System-IO.html#t:FilePath" > FilePath< / a > -> < a href = "../base-4.9.1.0/System-IO.html#t:IO" > IO< / a > [< a href = "TensorFlow-Examples-MNIST-Parse.html#t:MNIST" > MNIST< / a > ] < a href = "src/TensorFlow.Examples.MNIST.Parse.html#readMNISTSamples" class = "link" > Source< / a > < a href = "#v:readMNISTSamples" class = "selflink" > #< / a > < / p > < div class = "doc" > < p > Reads an MNIST file and returns a list of samples.< / p > < / div > < / div > < div class = "top" > < p class = "src" > < a id = "v:readMNISTLabels" class = "def" > readMNISTLabels< / a > :: < a href = "../base-4.9.1.0/System-IO.html#t:FilePath" > FilePath< / a > -> < a href = "../base-4.9.1.0/System-IO.html#t:IO" > IO< / a > [< a href = "../base-4.9.1.0/Data-Word.html#t:Word8" > Word8< / a > ] < a href = "src/TensorFlow.Examples.MNIST.Parse.html#readMNISTLabels" class = "link" > Source< / a > < a href = "#v:readMNISTLabels" class = "selflink" > #<