| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
TensorFlow.Internal.FFI
Contents
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 #
Constructors
| TensorFlowException Code Text |
Instances
| Eq TensorFlowException Source # | |
Defined in TensorFlow.Internal.FFI Methods (==) :: TensorFlowException -> TensorFlowException -> Bool # (/=) :: TensorFlowException -> TensorFlowException -> Bool # | |
| Show TensorFlowException Source # | |
Defined in TensorFlow.Internal.FFI Methods showsPrec :: Int -> TensorFlowException -> ShowS # show :: TensorFlowException -> String # showList :: [TensorFlowException] -> ShowS # | |
| Exception TensorFlowException Source # | |
Defined in TensorFlow.Internal.FFI Methods toException :: TensorFlowException -> SomeException # fromException :: SomeException -> Maybe TensorFlowException # | |
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.
Arguments
| :: Session | |
| -> [(ByteString, TensorData)] | Feeds. |
| -> [ByteString] | Fetches. |
| -> [ByteString] | Targets. |
| -> IO [TensorData] |
data TensorData Source #
All of the data needed to represent a tensor.
Constructors
| TensorData | |
Fields
| |
Instances
| Eq TensorData Source # | |
Defined in TensorFlow.Internal.FFI | |
| Show TensorData Source # | |
Defined in TensorFlow.Internal.FFI Methods 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.