<!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.Records.Conduit</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/TensorFlow.Records.Conduit.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-records-conduit-0.1.0.0: Conduit wrappers for TensorFlow.Records.</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.Records.Conduit</p></div><divid="table-of-contents"><pclass="caption">Contents</p><ul><li><ahref="#g:1">Encode/Decode</a></li><li><ahref="#g:2">Source/Sink</a></li></ul></div><divid="description"><pclass="caption">Description</p><divclass="doc"><p>Conduit wrappers for TensorFlow.Records.</p></div></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"><ahref="#v:encodeTFRecords">encodeTFRecords</a> :: <ahref="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => Conduit <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> m <ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></li><liclass="src short"><ahref="#v:decodeTFRecords">decodeTFRecords</a> :: MonadThrow m => Conduit <ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> m <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><liclass="src short"><ahref="#v:sinkTFRecords">sinkTFRecords</a> :: MonadResource m =><ahref="../base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> Consumer <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> m ()</li><liclass="src short"><ahref="#v:sourceTFRecords">sourceTFRecords</a> :: (MonadResource m, MonadThrow m) =><ahref="../base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> Producer m <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li></ul></div><divid="interface"><h1id="g:1">Encode/Decode</h1><divclass="top"><pclass="src"><aid="v:encodeTFRecords"class="def">encodeTFRecords</a> :: <ahref="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m => Conduit <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> m <ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a><ahref="src/TensorFlow.Records.Conduit.html#encodeTFRecords"class="link">Source</a><ahref="#v:encodeTFRecords"class="selflink">#</a></p><divclass="doc"><p>Encode TFRecords to a stream of bytes.</p></div></div><divclass="top"><pclass="src"><aid="v:decodeTFRecords"class="def">decodeTFRecords</a> :: MonadThrow m => Conduit <ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> m <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><ahref="src/TensorFlow.Records.Conduit.html#decodeTFRecords"class="link">Source</a><ahref="#v:decodeTFRecords"class="selflink">#</a></p><divclass="doc"><p>Decode TFRecords from a stream of bytes.</p></div></div><h1id="g:2">Source/Sink</h1><divclass="top"><pclass="src"><aid="v:sinkTFRecords"class="def">sinkTFRecords</a> :: MonadResource m =><ahref="../base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> Consumer <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> m () <ahref="src/TensorFlow.Records.Conduit.html#sinkTFRecords"class="link">Source</a><ahref="#v:sinkTFRecords"class="selflink">#</a></p><divclass="doc"><p>Write TFRecords to a file.</p></div></div><divclass="top"><pclass="src"><aid="v:sourceTFRecords"class="def">sourceTFRecords</a> :: (MonadResource m, MonadThrow m) =><ahref="../base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> Producer m <ahref="../bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">By