mirror of
https://github.com/tensorflow/haskell.git
synced 2024-12-27 03:59:46 +01:00
6b19e54722
* Update README to refer to 2.3.0-gpu. * Remove old package documentation from haddock directory.
1 line
No EOL
6.2 KiB
HTML
1 line
No EOL
6.2 KiB
HTML
<!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" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>TensorFlow.Examples.MNIST.Parse</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">tensorflow-mnist-0.1.0.1: TensorFlow demo application for learning MNIST model.</span><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></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"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">type</span> <a href="#t:MNIST">MNIST</a> = Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a></li><li class="src short"><a href="#v:drawMNIST">drawMNIST</a> :: <a href="TensorFlow-Examples-MNIST-Parse.html#t:MNIST" title="TensorFlow.Examples.MNIST.Parse">MNIST</a> -> <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a></li><li class="src short"><a href="#v:checkEndian">checkEndian</a> :: <a href="../binary-0.8.7.0/Data-Binary-Get-Internal.html#t:Get" title="Data.Binary.Get.Internal">Get</a> ()</li><li class="src short"><a href="#v:readMNISTSamples">readMNISTSamples</a> :: <a href="../base-4.13.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> [<a href="TensorFlow-Examples-MNIST-Parse.html#t:MNIST" title="TensorFlow.Examples.MNIST.Parse">MNIST</a>]</li><li class="src short"><a href="#v:readMNISTLabels">readMNISTLabels</a> :: <a href="../base-4.13.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> [<a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a>]</li><li class="src short"><a href="#v:readMessageFromFileOrDie">readMessageFromFileOrDie</a> :: Message m => <a href="../base-4.13.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> m</li></ul></details></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.13.0.0/Data-Word.html#t:Word8" title="Data.Word">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" title="TensorFlow.Examples.MNIST.Parse">MNIST</a> -> <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> <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.7.0/Data-Binary-Get-Internal.html#t:Get" title="Data.Binary.Get.Internal">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.13.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> [<a href="TensorFlow-Examples-MNIST-Parse.html#t:MNIST" title="TensorFlow.Examples.MNIST.Parse">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.13.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> [<a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a>] <a href="src/TensorFlow.Examples.MNIST.Parse.html#readMNISTLabels" class="link">Source</a> <a href="#v:readMNISTLabels" class="selflink">#</a></p><div class="doc"><p>Reads a list of MNIST labels from a file and returns them.</p></div></div><div class="top"><p class="src"><a id="v:readMessageFromFileOrDie" class="def">readMessageFromFileOrDie</a> :: Message m => <a href="../base-4.13.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> m <a href="src/TensorFlow.Examples.MNIST.Parse.html#readMessageFromFileOrDie" class="link">Source</a> <a href="#v:readMessageFromFileOrDie" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.23.0</p></div></body></html> |