Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
- fetchTensorVector :: forall a v. TensorType a => Tensor v a -> Build (Fetch (TensorData a))
Documentation
Types that contain ops which can be run.
Instances
Nodes ControlNode Source # | |
Defined in TensorFlow.Nodes | |
Nodes t => Nodes [t] Source # | |
Nodes t => Nodes (Maybe t) Source # | |
(Nodes t1, Nodes t2) => Nodes (t1, t2) Source # | |
(Nodes (f a), Nodes (ListOf f as)) => Nodes (ListOf f (a ': as)) Source # | |
Nodes (ListOf f ('[] :: [Type])) Source # | |
Nodes (Tensor v a) Source # | |
(Nodes t1, Nodes t2, Nodes t3) => Nodes (t1, t2, t3) Source # | |
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).
Instances
a ~ () => Fetchable ControlNode a Source # | |
Defined in TensorFlow.Nodes | |
Fetchable t a => Fetchable [t] [a] Source # | |
Fetchable t a => Fetchable (Maybe t) (Maybe a) Source # | |
l ~ List ('[] :: [Type]) => Fetchable (ListOf f ('[] :: [Type])) l Source # | |
(TensorType a, TensorDataType s a, a ~ a') => Fetchable (Tensor v a) (s a') Source # | |
(TensorType a, a ~ a') => Fetchable (Tensor v a) (TensorData a') Source # | |
Defined in TensorFlow.Nodes | |
(Fetchable t1 a1, Fetchable t2 a2) => Fetchable (t1, t2) (a1, a2) Source # | |
(Fetchable (f t) a, Fetchable (ListOf f ts) (List as), i ~ Identity) => Fetchable (ListOf f (t ': ts)) (ListOf i (a ': as)) 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 #
fetchTensorVector :: forall a v. TensorType a => Tensor v a -> Build (Fetch (TensorData a)) Source #