tensorflow-0.1.0.2: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Nodes

Synopsis

Documentation

class Nodes t where Source #

Types that contain ops which can be run.

Minimal complete definition

getNodes

Methods

getNodes :: t -> Build (Set NodeName) Source #

Instances

Nodes ControlNode Source # 
Nodes t => Nodes [t] Source # 

Methods

getNodes :: [t] -> Build (Set NodeName) Source #

Nodes t => Nodes (Maybe t) Source # 
(Nodes t1, Nodes t2) => Nodes (t1, t2) Source # 

Methods

getNodes :: (t1, t2) -> Build (Set NodeName) Source #

(Nodes (f a), Nodes (ListOf f as)) => Nodes (ListOf f ((:) * a as)) Source # 

Methods

getNodes :: ListOf f ((* ': a) as) -> Build (Set NodeName) Source #

Nodes (ListOf f ([] *)) Source # 

Methods

getNodes :: ListOf f [*] -> Build (Set NodeName) Source #

Nodes (Tensor v a) Source # 

Methods

getNodes :: Tensor v a -> Build (Set NodeName) Source #

(Nodes t1, Nodes t2, Nodes t3) => Nodes (t1, t2, t3) Source # 

Methods

getNodes :: (t1, t2, t3) -> Build (Set NodeName) 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).

Minimal complete definition

getFetch

Methods

getFetch :: t -> Build (Fetch a) Source #

Instances

(~) * a () => Fetchable ControlNode a Source # 
Fetchable t a => Fetchable [t] [a] Source # 

Methods

getFetch :: [t] -> Build (Fetch [a]) Source #

Fetchable t a => Fetchable (Maybe t) (Maybe a) Source # 

Methods

getFetch :: Maybe t -> Build (Fetch (Maybe a)) Source #

(~) * l (List ([] *)) => Fetchable (ListOf f ([] *)) l Source # 

Methods

getFetch :: ListOf f [*] -> Build (Fetch l) Source #

(TensorType a, TensorDataType s a, (~) * a a') => Fetchable (Tensor v a) (s a') Source # 

Methods

getFetch :: Tensor v a -> Build (Fetch (s a')) Source #

(TensorType a, (~) * a a') => Fetchable (Tensor v a) (TensorData a') Source # 

Methods

getFetch :: Tensor v a -> Build (Fetch (TensorData a')) Source #

(Fetchable t1 a1, Fetchable t2 a2) => Fetchable (t1, t2) (a1, a2) Source # 

Methods

getFetch :: (t1, t2) -> Build (Fetch (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 # 

Methods

getFetch :: ListOf f ((* ': t) ts) -> Build (Fetch (ListOf i ((* ': a) as))) Source #

(Fetchable t1 a1, Fetchable t2 a2, Fetchable t3 a3) => Fetchable (t1, t2, t3) (a1, a2, a3) Source # 

Methods

getFetch :: (t1, t2, t3) -> Build (Fetch (a1, a2, a3)) Source #

data Fetch a Source #

Fetch action. Keeps track of what needs to be fetched and how to decode the fetched data.

Constructors

Fetch 

Fields

Instances

Functor Fetch Source # 

Methods

fmap :: (a -> b) -> Fetch a -> Fetch b #

(<$) :: a -> Fetch b -> Fetch a #

Applicative Fetch Source # 

Methods

pure :: a -> Fetch a #

(<*>) :: Fetch (a -> b) -> Fetch a -> Fetch b #

(*>) :: Fetch a -> Fetch b -> Fetch b #

(<*) :: Fetch a -> Fetch b -> Fetch a #

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 #