Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype ControlNode = ControlNode {}
- newtype Device = Device {
- deviceName :: Text
- newtype NodeName = NodeName {
- unNodeName :: Text
- data OpDef = OpDef {}
- opName :: Lens' OpDef PendingNodeName
- opType :: Lens' OpDef OpType
- opAttr :: Attribute a => Text -> Lens' OpDef a
- opInputs :: Lens' OpDef [Output]
- opControlInputs :: Lens' OpDef [NodeName]
- newtype OpType = OpType {
- unOpType :: Text
- newtype OutputIx = OutputIx {
- unOutputIx :: Int
- data Output = Output {}
- output :: OutputIx -> NodeName -> Output
- data PendingNodeName
- = ExplicitName !Text
- | ImplicitName
- newtype ResourceHandle = ResourceHandle Output
Documentation
newtype ControlNode
A type of graph node which has no outputs. These nodes are valuable for causing side effects when they are run.
BuildResult ControlNode | |
Nodes ControlNode | |
(~) * a () => Fetchable ControlNode a |
newtype Device
A device that a node can be assigned to. There's a naming convention where the device names are constructed from job and replica names.
Device | |
|
Ops
newtype NodeName
The name of a node in the graph. This corresponds to the proto field NodeDef.name. Includes the scope prefix (if any) and a unique identifier (if the node was implicitly named).
NodeName | |
|
opName :: Lens' OpDef PendingNodeName
opControlInputs :: Lens' OpDef [NodeName]
newtype OpType
The type of op of a node in the graph. This corresponds to the proto field NodeDef.op.
newtype OutputIx
data Output
An output of a TensorFlow node.
Output | |
|
data PendingNodeName
The name specified for an unrendered Op. If an Op has an ImplicitName, it will be assigned based on the opType plus a unique identifier. Does not contain the "scope" prefix.
ExplicitName !Text | |
ImplicitName |
newtype ResourceHandle
Opaque handle to a mutable resource in the graph. Typical such resources are variables.