<!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"/><metaname="viewport"content="width=device-width, initial-scale=1"/><title>TensorFlow.Records</title><linkhref="linuwial.css"rel="stylesheet"type="text/css"title="Linuwial"/><linkrel="stylesheet"type="text/css"href="quick-jump.css"/><linkrel="stylesheet"type="text/css"href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700"/><scriptsrc="haddock-bundle.min.js"async="async"type="text/javascript"></script><scripttype="text/x-mathjax-config">MathJax.Hub.Config({tex2jax:{processClass:"mathjax",ignoreClass:".*"}});</script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script></head><body><divid="package-header"><spanclass="caption">tensorflow-records-0.1.0.0: Encoder and decoder for the TensorFlow \"TFRecords\" format.</span><ulclass="links"id="page-menu"><li><ahref="src/TensorFlow.Records.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul></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.Records</p></div><divid="table-of-contents"><divid="contents-list"><pclass="caption"onclick="window.scrollTo(0,0)">Contents</p><ul><li><ahref="#g:1">Records</a></li><li><ahref="#g:2">Implementation</a></li></ul></div></div><divid="description"><pclass="caption">Description</p><divclass="doc"><p>Encoder and decoder for the TensorFlow "TFRecords" format.</p></div></div><divid="synopsis"><detailsid="syn"><summary>Synopsis</summary><ulclass="details-toggle"data-details-id="syn"><liclass="src short"><ahref="#v:putTFRecord">putTFRecord</a> :: <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a> -> Put</li><liclass="src short"><ahref="#v:getTFRecord">getTFRecord</a> :: Get <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a></li><liclass="src short"><ahref="#v:getTFRecords">getTFRecords</a> :: Get [<ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a>]</li><liclass="src short"><ahref="#v:getTFRecordLength">getTFRecordLength</a> :: Get <ahref="../base-4.13.0.0/Data-Word.html#t:Word64"title="Data.Word">Word64</a></li><liclass="src short"><ahref="#v:getTFRecordData">getTFRecordData</a> :: <ahref="../base-4.13.0.0/Data-Word.html#t:Word64"title="Data.Word">Word64</a> -> Get <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a></li><liclass="src short"><ahref="#v:putTFRecordLength">putTFRecordLength</a> :: <ahref="../base-4.13.0.0/Data-Word.html#t:Word64"title="Data.Word">Word64</a> -> Put</li><liclass="src short"><ahref="#v:putTFRecordData">putTFRecordData</a> :: <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a> -> Put</li></ul></details></div><divid="interface"><ahref="#g:1"id="g:1"><h1>Records</h1></a><divclass="top"><pclass="src"><aid="v:putTFRecord"class="def">putTFRecord</a> :: <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a> -> Put <ahref="src/TensorFlow.Records.html#putTFRecord"class="link">Source</a><ahref="#v:putTFRecord"class="selflink">#</a></p><divclass="doc"><p>Put one TFRecord with the given contents.</p></div></div><divclass="top"><pclass="src"><aid="v:getTFRecord"class="def">getTFRecord</a> :: Get <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a
as provided by the tensorflow-records-conduit package.</p></div></div><ahref="#g:2"id="g:2"><h1>Implementation</h1></a><divclass="doc"><p>These may be useful for encoding or decoding to types other than
<code>ByteString</code> that have their own Cereal codecs.</p></div><divclass="top"><pclass="src"><aid="v:getTFRecordLength"class="def">getTFRecordLength</a> :: Get <ahref="../base-4.13.0.0/Data-Word.html#t:Word64"title="Data.Word">Word64</a><ahref="src/TensorFlow.Records.html#getTFRecordLength"class="link">Source</a><ahref="#v:getTFRecordLength"class="selflink">#</a></p><divclass="doc"><p>Get a length and verify its checksum.</p></div></div><divclass="top"><pclass="src"><aid="v:getTFRecordData"class="def">getTFRecordData</a> :: <ahref="../base-4.13.0.0/Data-Word.html#t:Word64"title="Data.Word">Word64</a> -> Get <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a><ahref="src/TensorFlow.Records.html#getTFRecordData"class="link">Source</a><ahref="#v:getTFRecordData"class="selflink">#</a></p><divclass="doc"><p>Get a record payload and verify its checksum.</p></div></div><divclass="top"><pclass="src"><aid="v:putTFRecordLength"class="def">putTFRecordLength</a> :: <ahref="../base-4.13.0.0/Data-Word.html#t:Word64"title="Data.Word">Word64</a> -> Put <ahref="src/TensorFlow.Records.html#putTFRecordLength"class="link">Source</a><ahref="#v:putTFRecordLength"class="selflink">#</a></p><divclass="doc"><p>Put a record length and its checksum.</p></div></div><divclass="top"><pclass="src"><aid="v:putTFRecordData"class="def">putTFRecordData</a> :: <ahref="../bytestring-0.10.10.1/Data-ByteString-Lazy.html#t:ByteString"title="Data.ByteString.Lazy">ByteString</a> -> Put <ahref="src/TensorFlow.Records.html#putTFRecordData"class="link">Source</a><ahref="#v:putTFRecordData"class="selflink">#</a></p><divclass="doc"><p>Put a record payload and its checksum.</p></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.23.0</p></div></body></html>