Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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 |
Instances
Eq TensorFlowException Source # | |
Defined in TensorFlow.Internal.FFI (==) :: TensorFlowException -> TensorFlowException -> Bool # (/=) :: TensorFlowException -> TensorFlowException -> Bool # | |
Show TensorFlowException Source # | |
Defined in TensorFlow.Internal.FFI showsPrec :: Int -> TensorFlowException -> ShowS # show :: TensorFlowException -> String # showList :: [TensorFlowException] -> ShowS # | |
Exception TensorFlowException Source # | |
Defined in TensorFlow.Internal.FFI |
:: (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 | |
|
Instances
Eq TensorData Source # | |
Defined in TensorFlow.Internal.FFI (==) :: TensorData -> TensorData -> Bool # (/=) :: TensorData -> TensorData -> Bool # | |
Show TensorData Source # | |
Defined in TensorFlow.Internal.FFI showsPrec :: Int -> TensorData -> ShowS # show :: TensorData -> String # showList :: [TensorData] -> ShowS # |
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.