Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype ControlNode = ControlNode {
- unControlNode :: Op
- newtype Device = Device {
- deviceName :: Text
- newtype NodeName = NodeName {
- unNodeName :: Text
- data Op
- = Rendered !NodeDef
- | Unrendered !OpDef
- opUnrendered :: Traversal' Op OpDef
- 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 {}
- newtype OutputIx = OutputIx {
- unOutputIx :: Int
- data Output = Output !OutputIx !Op
- output :: OutputIx -> Op -> Output
- outputIndex :: Lens' Output OutputIx
- outputOp :: Lens' Output Op
- data PendingNodeName
Documentation
newtype ControlNode Source
A type of graph node which has no outputs. These nodes are valuable for causing side effects when they are run.
BuildOp ControlNode Source | |
OpResult ControlNode Source | |
Nodes ControlNode Source | |
(~) * a () => Fetchable ControlNode a Source |
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
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).
The representation of a node in a TensorFlow graph.
Rendered !NodeDef | Properties are fixed, including the device, name, and scope. |
Unrendered !OpDef | Properties are not fixed, and may change depending on which context this op is rendered in. |
opUnrendered :: Traversal' Op OpDef Source
Traverse on the Unrendered
of an Op
.
Same implementation as _Left.
The type of op of a node in the graph. This corresponds to the proto field NodeDef.op.
An output of a TensorFlow node.
data PendingNodeName Source
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.