Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class BuildResult a where
- buildResult :: Result a
- buildOp :: BuildResult a => [Int64] -> OpDef -> Build a
- class PureResult a where
- pureResult :: ReaderT (Build OpDef) (State ResultState) a
- pureOp :: PureResult a => [Int64] -> Build OpDef -> a
- eqLengthGuard :: [(String, [(String, Int)])] -> Bool
- class BuildInputs a where
- buildInputs :: a -> Build [Output]
- type OpParams = OpDef -> OpDef
Documentation
class BuildResult a where
Class of types that can be used as op outputs.
buildResult :: Result a
buildOp :: BuildResult a => [Int64] -> OpDef -> Build a
class PureResult a where
Class of types that can be used as op outputs.
pureResult :: ReaderT (Build OpDef) (State ResultState) a
PureResult a => PureResult [a] | |
(PureResult a1, PureResult a2) => PureResult (a1, a2) | |
TensorTypes as => PureResult (TensorList Build as) | |
PureResult (Tensor Build a) | |
(PureResult a1, PureResult a2, PureResult a3) => PureResult (a1, a2, a3) | |
(PureResult a1, PureResult a2, PureResult a3, PureResult a4) => PureResult (a1, a2, a3, a4) | |
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5) => PureResult (a1, a2, a3, a4, a5) | |
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5, PureResult a6) => PureResult (a1, a2, a3, a4, a5, a6) | |
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5, PureResult a6, PureResult a7) => PureResult (a1, a2, a3, a4, a5, a6, a7) | |
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5, PureResult a6, PureResult a7, PureResult a8) => PureResult (a1, a2, a3, a4, a5, a6, a7, a8) |
pureOp :: PureResult a => [Int64] -> Build OpDef -> a
eqLengthGuard :: [(String, [(String, Int)])] -> Bool
Returns true if all the integers in each tuple are identical. Throws an error with a descriptive message if not.
class BuildInputs a where
buildInputs :: a -> Build [Output]
BuildInputs ResourceHandle | |
BuildInputs a => BuildInputs [a] | |
BuildInputs (ListOf (Tensor v) as) | |
BuildInputs (Tensor v a) |