tensorflow-0.1.0.0: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.BuildOp

Synopsis

Documentation

class OpResult a Source

Class of types that can be used as op outputs.

Minimal complete definition

toResult

Instances

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

class BuildOp f Source

Class of types that can be used as op functions.

Minimal complete definition

buildOp'

Instances

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

buildOp :: BuildOp f => OpDef -> f Source

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

buildListOp Source

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 Source

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