tensorflow-0.1.0.0: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.BuildOp

Synopsis

Documentation

class OpResult a

Class of types that can be used as op outputs.

Minimal complete definition

toResult

Instances

OpResult ControlNode 
OpResult a => OpResult [a] 
(OpResult a1, OpResult a2) => OpResult (a1, a2) 
OpResult (Tensor Ref a) 
OpResult (Tensor Value a) 
(OpResult a1, OpResult a2, OpResult a3) => OpResult (a1, a2, a3) 
(OpResult a1, OpResult a2, OpResult a3, OpResult a4) => OpResult (a1, a2, a3, a4) 
(OpResult a1, OpResult a2, OpResult a3, OpResult a4, OpResult a5) => OpResult (a1, a2, a3, a4, a5) 
(OpResult a1, OpResult a2, OpResult a3, OpResult a4, OpResult a5, OpResult a6) => OpResult (a1, a2, a3, a4, a5, a6) 

class BuildOp f

Class of types that can be used as op functions.

Minimal complete definition

buildOp'

Instances

BuildOp ControlNode 
BuildOp [Tensor Value a] 
OpResult a => BuildOp (Build a) 
BuildOp f => BuildOp ([Tensor v a] -> f) 
BuildOp f => BuildOp (Tensor v a -> f) 
(OpResult t1, OpResult t2) => BuildOp (t1, t2) 
BuildOp (Tensor Ref a) 
BuildOp (Tensor Value a) 
(OpResult t1, OpResult t2, OpResult t3) => BuildOp (t1, t2, t3) 
(OpResult t1, OpResult t2, OpResult t3, OpResult t4) => BuildOp (t1, t2, t3, t4) 
(OpResult t1, OpResult t2, OpResult t3, OpResult t4, OpResult t5) => BuildOp (t1, t2, t3, t4, t5) 
(OpResult t1, OpResult t2, OpResult t3, OpResult t4, OpResult t5, OpResult t6) => BuildOp (t1, t2, t3, t4, t5, t6) 

buildOp :: BuildOp f => OpDef -> f

Starts an operation that returns a structured set of tensors (singletons or tuples).

buildListOp

Arguments

:: BuildOp f 
=> [Int64]

Cardinality of the corresponding list of tensors output.

-> OpDef 
-> f 

Starts an operation that returns a list of tensors.

eqLengthGuard :: [(String, [(String, Int)])] -> Bool

Returns true if all the integers in each tuple are identical. Throws an error with a descriptive message if not.