tensorflow-0.1.0.0: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Internal.FFI

Contents

Synopsis

Documentation

withSession Source

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 Source

Arguments

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

Feeds.

-> [ByteString]

Fetches.

-> [ByteString]

Targets.

-> IO [TensorData] 

data TensorData Source

All of the data needed to represent a tensor.

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

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

getAllOpList :: IO ByteString Source

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 Source

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