tensorflow-records-conduit-0.1.0.0: Conduit wrappers for TensorFlow.Records.
Safe HaskellNone
LanguageHaskell2010

TensorFlow.Records.Conduit

Description

Conduit wrappers for TensorFlow.Records.

Synopsis

Encode/Decode

encodeTFRecords :: Monad m => ConduitT ByteString ByteString m () Source #

Encode TFRecords to a stream of bytes.

decodeTFRecords :: MonadThrow m => ConduitT ByteString ByteString m () Source #

Decode TFRecords from a stream of bytes.

Source/Sink

sinkTFRecords :: MonadResource m => FilePath -> ConduitT ByteString o m () Source #

Write TFRecords to a file.

sourceTFRecords :: (MonadResource m, MonadThrow m) => FilePath -> ConduitT i ByteString m () Source #

Read TFRecords from a file.