Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data TensorFlowException = TensorFlowException Code Text
- data Session
- withSession :: (MonadIO m, MonadMask m) => (SessionOptions -> IO ()) -> ((IO () -> IO ()) -> Session -> m a) -> m a
- extendGraph :: Session -> GraphDef -> IO ()
- run :: Session -> [(ByteString, TensorData)] -> [ByteString] -> [ByteString] -> IO [TensorData]
- data TensorData = TensorData {
- tensorDataDimensions :: [Int64]
- tensorDataType :: !DataType
- tensorDataBytes :: !(Vector Word8)
- setSessionConfig :: ConfigProto -> SessionOptions -> IO ()
- setSessionTarget :: ByteString -> SessionOptions -> IO ()
- getAllOpList :: IO ByteString
- useProtoAsVoidPtrLen :: (Message msg, Integral c, Show c, Bits c) => msg -> (Ptr b -> c -> IO a) -> IO a
Documentation
data TensorFlowException Source #
TensorFlowException Code Text |
:: (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.
:: Session | |
-> [(ByteString, TensorData)] | Feeds. |
-> [ByteString] | Fetches. |
-> [ByteString] | Targets. |
-> IO [TensorData] |
data TensorData Source #
All of the data needed to represent a tensor.
TensorData | |
|
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.