tensorflow-0.1.0.0: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Internal.FFI

Contents

Synopsis

Documentation

data Session

withSession

Arguments

:: (SessionOptions -> IO ()) 
-> ((IO () -> IO ()) -> Session -> IO a)

The action can spawn concurrent tasks which will be canceled before withSession returns.

-> IO a 

Runs the given action after creating a session with options populated by the given optionSetter.

run

Arguments

:: Session 
-> [(ByteString, TensorData)]

Feeds.

-> [ByteString]

Fetches.

-> [ByteString]

Targets.

-> IO [TensorData] 

data TensorData

All of the data needed to represent a tensor.

setSessionConfig :: ConfigProto -> SessionOptions -> IO ()

setSessionTarget :: ByteString -> SessionOptions -> IO ()

getAllOpList :: IO ByteString

Returns the serialized OpList of all OpDefs defined in this address space.

Internal helper.

useProtoAsVoidPtrLen :: (Message msg, Integral c, Show c, Bits c) => msg -> (Ptr b -> c -> IO a) -> IO a

Serializes the given msg and provides it as (ptr,len) argument to the given action.