Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Nodes t where
- class Nodes t => Fetchable t a where
- data Fetch a = Fetch {
- fetches :: Set Text
- fetchRestore :: Map Text TensorData -> a
- nodesUnion :: (Monoid b, Traversable t, Applicative f) => t (f b) -> f b
- fetchTensorList :: TensorType a => Tensor v a -> Build (Fetch (Shape, [a]))
- fetchTensorVector :: forall a v. TensorType a => Tensor v a -> Build (Fetch (Shape, Vector a))
- newtype Scalar a = Scalar {
- unScalar :: a
Documentation
Types that contain ops which can be run.
class Nodes t => Fetchable t a where Source
Types that tensor representations (e.g. Tensor
, ControlNode
) can be
fetched into.
Includes collections of tensors (e.g. tuples).
(~) * a () => Fetchable ControlNode a Source | |
Fetchable t a => Fetchable [t] [a] Source | |
(TensorType a, (~) * a a') => Fetchable (Tensor v a) (Scalar a') Source | |
(TensorType a, (~) * a a') => Fetchable (Tensor v a) (Vector a') Source | |
(Fetchable t1 a1, Fetchable t2 a2) => Fetchable (t1, t2) (a1, a2) Source | |
(Fetchable t1 a1, Fetchable t2 a2, Fetchable t3 a3) => Fetchable (t1, t2, t3) (a1, a2, a3) Source |
Fetch action. Keeps track of what needs to be fetched and how to decode the fetched data.
Fetch | |
|
nodesUnion :: (Monoid b, Traversable t, Applicative f) => t (f b) -> f b Source
fetchTensorList :: TensorType a => Tensor v a -> Build (Fetch (Shape, [a])) Source
fetchTensorVector :: forall a v. TensorType a => Tensor v a -> Build (Fetch (Shape, Vector a)) Source
Eq a => Eq (Scalar a) Source | |
Floating a => Floating (Scalar a) Source | |
Fractional a => Fractional (Scalar a) Source | |
Num a => Num (Scalar a) Source | |
Ord a => Ord (Scalar a) Source | |
Real a => Real (Scalar a) Source | |
RealFloat a => RealFloat (Scalar a) Source | |
RealFrac a => RealFrac (Scalar a) Source | |
Show a => Show (Scalar a) Source | |
IsString a => IsString (Scalar a) Source | |
(TensorType a, (~) * a a') => Fetchable (Tensor v a) (Scalar a') Source |