tensorflow-0.3.0.0: TensorFlow bindings.
Safe HaskellNone
LanguageHaskell2010

TensorFlow.Internal.FFI

Synopsis

Documentation

withSession Source #

Arguments

:: (MonadIO m, MonadMask m) 
=> (SessionOptions -> IO ()) 
-> ((IO () -> IO ()) -> Session -> m a)

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

-> m 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.

Instances

Instances details
Eq TensorData Source # 
Instance details

Defined in TensorFlow.Internal.FFI

Show TensorData Source # 
Instance details

Defined in TensorFlow.Internal.FFI

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.