tensorflow-mnist-0.1.0.0: TensorFlow demo application for learning MNIST model.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Examples.MNIST.Parse

Synopsis

Documentation

type MNIST = Vector Word8

Utilities specific to MNIST.

drawMNIST :: MNIST -> Text

Produces a unicode rendering of the MNIST digit sample.

checkEndian :: Get ()

Check's the file's endianess, throwing an error if it's not as expected.

readMNISTSamples :: FilePath -> IO [MNIST]

Reads an MNIST file and returns a list of samples.

readMNISTLabels :: FilePath -> IO [Word8]

Reads a list of MNIST labels from a file and returns them.

readMessageFromFileOrDie :: Message m => FilePath -> IO m