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