tensorflow-0.1.0.0: TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.BuildOp

Synopsis

Documentation

class BuildResult a where

Class of types that can be used as op outputs.

Methods

buildResult :: Result a

Instances

BuildResult ResourceHandle 
BuildResult ControlNode 
BuildResult a => BuildResult [a] 
(BuildResult a1, BuildResult a2) => BuildResult (a1, a2) 
(Rendered v, TensorTypes as) => BuildResult (TensorList v as) 
Rendered v => BuildResult (Tensor v a) 
(BuildResult a1, BuildResult a2, BuildResult a3) => BuildResult (a1, a2, a3) 
(BuildResult a1, BuildResult a2, BuildResult a3, BuildResult a4) => BuildResult (a1, a2, a3, a4) 
(BuildResult a1, BuildResult a2, BuildResult a3, BuildResult a4, BuildResult a5) => BuildResult (a1, a2, a3, a4, a5) 
(BuildResult a1, BuildResult a2, BuildResult a3, BuildResult a4, BuildResult a5, BuildResult a6) => BuildResult (a1, a2, a3, a4, a5, a6) 
(BuildResult a1, BuildResult a2, BuildResult a3, BuildResult a4, BuildResult a5, BuildResult a6, BuildResult a7) => BuildResult (a1, a2, a3, a4, a5, a6, a7) 
(BuildResult a1, BuildResult a2, BuildResult a3, BuildResult a4, BuildResult a5, BuildResult a6, BuildResult a7, BuildResult a8) => BuildResult (a1, a2, a3, a4, a5, a6, a7, a8) 

buildOp :: BuildResult a => [Int64] -> OpDef -> Build a

class PureResult a where

Class of types that can be used as op outputs.

Methods

pureResult :: ReaderT (Build OpDef) (State ResultState) a

Instances

PureResult a => PureResult [a] 
(PureResult a1, PureResult a2) => PureResult (a1, a2) 
TensorTypes as => PureResult (TensorList Build as) 
PureResult (Tensor Build a) 
(PureResult a1, PureResult a2, PureResult a3) => PureResult (a1, a2, a3) 
(PureResult a1, PureResult a2, PureResult a3, PureResult a4) => PureResult (a1, a2, a3, a4) 
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5) => PureResult (a1, a2, a3, a4, a5) 
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5, PureResult a6) => PureResult (a1, a2, a3, a4, a5, a6) 
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5, PureResult a6, PureResult a7) => PureResult (a1, a2, a3, a4, a5, a6, a7) 
(PureResult a1, PureResult a2, PureResult a3, PureResult a4, PureResult a5, PureResult a6, PureResult a7, PureResult a8) => PureResult (a1, a2, a3, a4, a5, a6, a7, a8) 

pureOp :: PureResult a => [Int64] -> Build OpDef -> a

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.

type OpParams = OpDef -> OpDef

Parameters to build an op (for example, the node name or optional attributes). TODO: be more type safe.