tensorflow-0.1.0.0: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Nodes

Synopsis

Documentation

class Nodes t where

Types that contain ops which can be run.

Methods

getNodes :: t -> Build (Set NodeName)

Instances

Nodes ControlNode 
Nodes t => Nodes [t] 
(Nodes t1, Nodes t2) => Nodes (t1, t2) 
(Nodes (f a), Nodes (ListOf f as)) => Nodes (ListOf f ((:) * a as)) 
Nodes (ListOf f ([] *)) 
Nodes (Tensor v a) 
(Nodes t1, Nodes t2, Nodes t3) => Nodes (t1, t2, t3) 

class Nodes t => Fetchable t a where

Types that tensor representations (e.g. Tensor, ControlNode) can be fetched into.

Includes collections of tensors (e.g. tuples).

Methods

getFetch :: t -> Build (Fetch a)

Instances

(~) * a () => Fetchable ControlNode a 
Fetchable t a => Fetchable [t] [a] 
(~) * l (List ([] *)) => Fetchable (ListOf f ([] *)) l 
(TensorType a, TensorDataType s a, (~) * a a') => Fetchable (Tensor v a) (s a') 
(TensorType a, (~) * a a') => Fetchable (Tensor v a) (TensorData a') 
(Fetchable t1 a1, Fetchable t2 a2) => Fetchable (t1, t2) (a1, a2) 
(Fetchable (f t) a, Fetchable (ListOf f ts) (List as), (~) (* -> *) i Identity) => Fetchable (ListOf f ((:) * t ts)) (ListOf i ((:) * a as)) 
(Fetchable t1 a1, Fetchable t2 a2, Fetchable t3 a3) => Fetchable (t1, t2, t3) (a1, a2, a3) 

data Fetch a

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

Constructors

Fetch 

Fields

fetches :: Set Text

Nodes to fetch

fetchRestore :: Map Text TensorData -> a

Function to create an a from the fetched data.

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))